storing data in an array

kindly help me how to store data in an empty array without using iterator index: e.g
a1=[]%empty array
for i=1:5
a1[i]= i;%with iterator
%without iterator ??
end
please. guide me and sorry if I could not write the question correctly!!

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2012년 1월 18일

1 개 추천

eg:
i1 = 1:5;
a1 = i1;
OR
a1 = 1:5;

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

ady
2012년 1월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by