フィルターのクリア

how loop output store

1 回表示 (過去 30 日間)
sonu
sonu 2013 年 4 月 18 日
hi
i have loop output in terms of price after every loop i got the price value ...how can i see this price value in table form..in continuous manner store in one veritable...

採用された回答

Iman Ansari
Iman Ansari 2013 年 4 月 18 日
編集済み: Iman Ansari 2013 年 4 月 18 日
Hi. What is the size of your price value in each loop:
for i=1:n
% if it is a number
output(i,1)=price;
% if it is a column vector
output(:,i)=price;
% if it is a row vector
output(i,:)=price;
% if it is a matrix or its size changes in each loop
output{i}=price;
end
  1 件のコメント
sonu
sonu 2013 年 4 月 25 日
THNX

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by