close allclear allclctic;i=1;for k=1:0.5:10; for a=1:0.5:5; numpl(i,:) =k; denpl(i,:) =[1 a 0]; i=i+1; endendw=[.1,.5,.8,1,2,8,15,50,100];P=freqcp(numpl,denpl,w);toc
MATLAB: How can i vectorize this for loop
control systemMATLAB
Best Answer