For this given code, what would the variable var equal?
古いコメントを表示
What value does var have given the code fragment?
for index = 1:2:7
if index <= 4
var(index) = index;
elseif index == 5
var(index) = 2;
else
var(index+1) = 1;
end
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Biological and Health Sciences についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!