I created code in the command window but I could not write it as a function.
古いコメントを表示
N = 138
j=1;
for i = 1:2:N
A(1,i) = int32(j);
A(2,i) = randi([1 10],1);
A(1,i+1) = int32(j);
A(2,i+1) = randi([11 18],1);
j = j+1;
end
hello, I created such a code on the command window, but I could not write it as a function, it gave an error. Can you turn this into a function?
4 件のコメント
Walter Roberson
2022 年 3 月 15 日
What error did it give? What function header did you use?
Berfin Çetinkaya
2022 年 3 月 16 日
Jan
2022 年 3 月 16 日
Again: What function header do you use? If you post the code, the readers can find the problem.
Berfin Çetinkaya
2022 年 3 月 16 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Structured Data and XML Documents についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!