Is there any way to represent results of for end as a vector.
for example
for h0=0:1:2 h=h0*2end
results
ansh = 0h = 2h = 4
But i want that result like a vector
ans0 2 4
I know it without using for h0=0:1:2;h=h0*2 . But ı need to represent results of for end as a vector in my real code. can you help
Best Answer