フィルターのクリア

how to store data in a matrix

13 ビュー (過去 30 日間)
nazila
nazila 2012 年 9 月 17 日
回答済み: mordant eagle 2017 年 4 月 16 日
Hi guys,
I have problem with storing data or points in a 'for loop' . when i am using 'for loop' at end i can display each point one by one but i cant collect them in a matrix, how can i store all points in a matrix? what is your idea? i appreciate any help!
Thanks.
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 17 日
post your code

サインインしてコメントする。

採用された回答

Thomas
Thomas 2012 年 9 月 17 日
This video should help:
Eg
for ii = 1:50
for jj = 1:10
out(ii,jj)=rand(1);
end
end
out will be a matrix of 50*10
  1 件のコメント
nazila
nazila 2012 年 9 月 18 日
thanx alot :) it was helpful.

サインインしてコメントする。

その他の回答 (1 件)

mordant eagle
mordant eagle 2017 年 4 月 16 日
Hi, what if I want to insert the rows like 1,2,3,...,50 and columns like 1,2,..,10. What shall I do ? for ii = 1:50 for jj = 1:10 out(ii,jj)=???; end
end

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by