question for a loop in MATLAB

Discussion in 'Programmer's Corner' started by theo23, Jan 22, 2009.

  1. theo23

    Thread Starter Member

    Nov 29, 2008
    16
    0
    Hello!!
    I have a question and i need your help.I have an equation with the variable Nd.I want to change this variable between 5e9-e12 with this logic:
    5e9
    6e9
    ...
    9e9
    10e9(e10)
    2e10(20e9)
    3e10(30e9)
    ....
    9e10(90e9)
    10e10(e11)
    2e11(200e9)
    3e11(300e9)
    ....
    9e11(900e11)
    10e11(e12)
    Is it possible to do that with a for,while etc loop?Maybe i can do it with the longspace but i dont know if this is the best way...
    Thank you!!!!!
     
Loading...