I am new to Matlab and guess this will be EASY for someone...
I have
','B132-32','B134-22','S132-11','D532-32'
And I would like
'B132-32','B134-22','S132-11','D532-32'
Basically removing the first
',
How can i do this?!

 Akzeptierte Antwort

Stephen23
Stephen23 am 1 Apr. 2021

0 Stimmen

What you show is a character vector, not a string. Which makes this easy using indexing:
c = ',''B132-32'',''B134-22'',''S132-11'',''D532-32'
c = ','B132-32','B134-22','S132-11','D532-32'
c(1:2) = []
c = 'B132-32','B134-22','S132-11','D532-32'

1 Kommentar

nayan
nayan am 1 Apr. 2021
thank you - feel stupid asking such an easy qu. Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Tags

Gefragt:

am 1 Apr. 2021

Kommentiert:

am 1 Apr. 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by