hello , I want to make a loop for exmpale from 1:1:100 and then enter each number into an array of each number of array . for exmpale my program is :
clc;clear all;k=1;DC=input('enter DC:');for DC=DC:1:100disp(DC)end if(k==1) arr=zeros(100,9); end if (k>0 && k<100) arr(k)=DC; end
when I run this script only the last value saves in the array . how can i save all the values of the loops ?
Best Answer