cell array in matlab..

Hi there, I have a cell array in matlab in the form of:
'f2=38.8504'
'f98=39.1628'
'f2=38.8504'
'f98=39.1628'
'f2=38.8504'
'f98=39.1628'
I do not want f2 or f98 I just want the values on the right of the equal sign (=) in a normal array rather than cell array.
Thanks.

댓글 수: 2

Mate 2u
Mate 2u 2012년 4월 15일
It is a large array so it may need to be a fast code.
Oleg Komarov
Oleg Komarov 2012년 4월 15일
Your post is clear, however, considering the effort you put in separating the example input with newlines I think that this post may be of some help: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup

댓글을 달려면 로그인하십시오.

 채택된 답변

Oleg Komarov
Oleg Komarov 2012년 4월 15일

0 개 추천

One of the many solutions:
cellfun(@(x,y) str2double(x(y+1:end)),c, regexp(c,'='))
Let us know if the timings are fine.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

질문:

2012년 4월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by