How to store an array of values in for loop?

조회 수: 1 (최근 30일)
Casey
Casey 2012년 2월 2일
댓글: Niklas Kurz 2021년 1월 23일
I am unsure on how to store an array of values in a for loop? example:
for i=1:10 A=(R*5)+(Y*6); end;
% A represents the array.
When i type A, i could not get the set of array values.

채택된 답변

Krishnendu Mukherjee
Krishnendu Mukherjee 2012년 2월 2일
for i=1:10 A(:,i)=(R*5)+(Y*6); end you can try this
  댓글 수: 3
uthara
uthara 2015년 12월 11일
thank you so much
Niklas Kurz
Niklas Kurz 2021년 1월 23일
genius

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by