I have a datasheet of 34*300000 and a 1D array of 300. Inside the array I got random numbers between 1 and 300k and I want to allocate the value of 1 into xth column of 34th row of the datasheet, a fairly simple task. I tried the below code but it take 10+ minutes to run (on 8gb RAM, corei7 6500 cpu):
For i = 1:300
Datasheet(34,array(i)) = 1
End
Any suggestions on what is going wrong?

 採用された回答

Abbas Nasri
Abbas Nasri 2020 年 7 月 12 日

0 投票

I figured it out, a semicolon at the end of the second line did the job 🤦🏻♂

1 件のコメント

madhan ravi
madhan ravi 2020 年 7 月 12 日
Things happen xD

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by