- #1
vijetha9
- 2
- 0
Hie all
Can anyone please help me with this problem
I need to vectorize the following MATLAB code :
for c=1:3
h = randn(3,3) + j * randn(3,3);
z( :, :,c) = h;
end
Im basically trying to create a 3-D matrix - which has 3 , 2-D matrices (these matrices contain radomly generated complex numbers. The above code is working but i want to vectorize it for faster execution time.
Thanx
Can anyone please help me with this problem
I need to vectorize the following MATLAB code :
for c=1:3
h = randn(3,3) + j * randn(3,3);
z( :, :,c) = h;
end
Im basically trying to create a 3-D matrix - which has 3 , 2-D matrices (these matrices contain radomly generated complex numbers. The above code is working but i want to vectorize it for faster execution time.
Thanx
Last edited: