3
I want to create an array in Matlab that takes 5 values from the 'tot' variable'.
In my program I have a tot variable that gets 1/2
tot=1/2;
I want the vector called 'xi' at first position to receive the value of 'tot'
In second position 'xi' get tot+value from first position 'xi'
In third position 'xi' receive tot+value from second position 'xi'
I want to do this for the 5 vector positions, but dynamically, without having to assign the five vector values one to one.
FOLLOWS BELOW THE CODE THAT IS NOT RIGHT:
tot=1/2;
xi=(tot:tot)// a partir daqui não sei mais fazer
disp(xi)
Please do not use high box in titles.
– user28595