Trying to fill an empty array
5 ビュー (過去 30 日間)
古いコメントを表示
Sydney Kehoe
2021 年 6 月 6 日
回答済み: Sulaymon Eshkabilov
2021 年 6 月 6 日
This is a bit complex and I am fairly new to matlab but I need to create a for loop for specific time ranges and then have this data be filled into an empty array and I am not quite sure how to go about it. Any help would be appreciated. Thanks.
0 件のコメント
採用された回答
Sulaymon Eshkabilov
2021 年 6 月 6 日
There are a couple of crucial errs in your screenshoted code.
(1) In "if" statement condition 2 after && sign "g(ii)" is missing
(2) In "elseif" statement, the same type of err
(3) No need, "else" part. Since no outputs are to be produced
(4) "empty_array" has to have an index, e.g.: empty_array(ii) = g(ii);
0 件のコメント
その他の回答 (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!