i want to make for loop to creat an array
h1=550
h2=0.8*h1
h3=0.8*h3
..
and strore the values from h1 to h_n
i made that
what is the error
clear allclcfor i=2:5 h(1)=550; h(i)=0.8*h(i-1); [a(i)]=[h(i)]end
for loop
clear allclcfor i=2:5 h(1)=550; h(i)=0.8*h(i-1); [a(i)]=[h(i)]end
Best Answer