채택된 답변

Andrei Bobrov
Andrei Bobrov 2014년 8월 14일

0 개 추천

out0 = regexp('01-01-01','\d*','match');
out = [out0{:}];

추가 답변 (1개)

Pratik Bajaria
Pratik Bajaria 2014년 8월 14일
편집: Pratik Bajaria 2014년 8월 14일

0 개 추천

Here's a workaround for this.
hypind=find(p=='-');
cnt=0;
cntp=1;
for i=1:size(p,2)
if i==hypind(cntp)
if cntp<size(hypind,2)
cntp=cntp+1;
end
else
cnt=cnt+1;
pfinal(cnt)=p(i);
end
end
Similarly, you can do for ' : '. Hope this helps.
Please let me know incase of further doubts.
Regards, Pratik

카테고리

태그

아직 태그를 입력하지 않았습니다.

질문:

NG
2014년 8월 14일

답변:

2014년 8월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by