Filter löschen
Filter löschen

parallel computing in matlab

1 Ansicht (letzte 30 Tage)
sweta arya
sweta arya am 23 Feb. 2016
Bearbeitet: Edric Ellis am 24 Feb. 2016
temp=zeros(200,288);
parfor u=1:200
count//is 1-d array of 256 element
temp(u,1:256)=count;
end
//giving error:due to temp can not run this loop in parallel.what can i do for correcting it.Thanks in advance.
  1 Kommentar
Amos
Amos am 23 Feb. 2016
The best would be if you provide a code sample for us to reproduce the error. Use the "code" functionality to post code segments. It should be complete such that we can copy and paste it into matlab and see ...
Can you rewrite your code such that temp is 200x256 instead of 200x288? I believe that then it should work, because then matlab can treat temp as a so-called "sliced variable".

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Parallel Computing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by