what is the meaning of following code? temp=[];temp1=1:230;temp=[temp;temp1];
6 ビュー (過去 30 日間)
古いコメントを表示
i am not getting what will be the value of temp n the codes mentioned above.can anyone lease help me?
回答 (1 件)
KSSV
2018 年 11 月 30 日
It seems thabove code is in a for loop. Every time a variable temp is calculated and it is expanded/ joined along with temp1.
temp = [];
temp1 = 1:230 ;
for i = 1:10
temp = [temp temp1] ;
end
The above coding is not a good practise. Show us the whole code to get help.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!