Vectorization problem with assignments
2 ビュー (過去 30 日間)
Good afternoon. I was trying to vectorize the following code in order to make it faster, however I was unable to do so. I can't also imagine about how to do it looking into the MATLAB examples of vectorization MATLAB. I would be very grateful if somebody could give me help about how to do it.
cols = zeros(length(vector1),dims);
cols(i,:) = Vector2(vector1(i),1:dims);
Thank you very much.