Community Profile

Contact

I have a code in which I have to multiply many pairs of matrices. This part repeats many times so it is important to make it as ...

1 Answers

0

Asked 1 year ago

Regaeding the usage of 'round', in one of my trials to solve the problem I did the following: dilution = rand (size(S)) > ((len...

8528 views

Responded 6 years ago

Hi, N0=500000; S is a vector whose length changes randomly in the simulation and is approximately ~510000. The simulation random...

I used the code lines I wrote above, and from time to time the program stopped with the error message: ??? Subscript indices mu...

Thanks, Tamar.

Hi, I am not using 'find' as a variable, and there is no MEX-file involved in my code either. Tamar.

My code (a little simplified) is this: dilution = rand (size(S)) > ((length(S) - N0) / length(S)); diluted_S = S (find(dilution...

After extensive use in a simiulation, it occurs once in a while that 'find' returns non-integer indices! (happened in Matlab 7.5...

Posted 6 years ago