I got output as:
1.0000 0 1.0000 0.0116
Now i want it as:
1 0 1 0.0116
(since [1 0 1] is my code word that is remove decimal points from 1.000)
please help!

 채택된 답변

Paulo Silva
Paulo Silva 2011년 6월 8일

0 개 추천

num2str([1 0 1 .0116]') %this just shows the values in string format
Remove the ' if you want the values in a line

추가 답변 (1개)

Andrei Bobrov
Andrei Bobrov 2011년 6월 8일

1 개 추천

format short g

댓글 수: 3

Paulo Silva
Paulo Silva 2011년 6월 8일
nice one, I always forget the g
Paulo Silva
Paulo Silva 2011년 6월 8일
+1 vote
Andrei Bobrov
Andrei Bobrov 2011년 6월 8일
Thanks Paulo

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

카테고리

태그

Community Treasure Hunt

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

Start Hunting!

Translated by