disp some number with loop for

3 views (last 30 days)
zina ben
zina ben on 9 Jul 2012
please i need to disp this result from loop for
Y=6000000,Y=600000,Y=60000, Y=6000,Y=600,Y=60,Y=6,Y=0.6,Y=0.06,Y=0.006,Y=0.0006,
help me.thanks in advance
  1 Comment
Jan on 9 Jul 2012
Because this looks like a homework question, please post have you have tried so far and what problem occurred.

Sign in to comment.

Answers (1)

Kye Taylor
Kye Taylor on 9 Jul 2012
If you need the number of zeros before the decimal place and after to be exactly as you indicated in the original question, try
v = (6:-1:-7);
for j = 1:length(v);

Community Treasure Hunt

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

Start Hunting!