I need to repeat alot of null-space operations (of 3 x 4 matrices) , and is looking for a way to improve speed. I am trying to work with matrices, and essentially what I want to do, if possible, is to increase speed between "tic" and "toc" in the following:
n=1e6;Trow1=rand(n,4);Trow2=rand(n,4);Trow3=rand(n,4);ticVh=zeros(n,4);for i=1:n Vh(i,:)=null([ Trow1(i,:); Trow2(i,:); Trow3(i,:)] );end toc
I am not looking for methods involving parallelization, but was hoping that I somehow could avoid the for-loop, or similar.
Best Answer