How do we store the results of a loop vertically?
5 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone,
Is this a correct way to store the values of a loop vertically in an excel file?
CompiledResults(:,i) = Output
also, what is the difference between this and store option?
0 件のコメント
採用された回答
Adam Danz
2021 年 3 月 10 日
編集済み: Adam Danz
2021 年 3 月 10 日
> Is this a correct way to store the values of a loop vertically in an excel file?
CompiledResults(:,i) = Output
Well, no. That appears to store values vertically within a variable named CompiledResults, in column i. Check out this page from the documentation on how to write to excel files.
> what is the difference between this and store option
Perhaps adding some more context would help, if this doesn't address your question.
2 件のコメント
Adam Danz
2021 年 3 月 10 日
Does the loop produce a scalar value (size 1x1) or a vector? The line that you have stores a vector but can easily store a scalar in row j using,
CompiledResults(j,i) = ___
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!