MATLAB: How can i see the compete result optimizationprogrammingsignal processing >> ans = nPerRank: [0 1] rank: {[] [14x1 double]} F: [1x1 struct] Best Answer celldisp(ans.rank) Related SolutionsMATLAB: How to count the 1X1 cells in a cell array a=cellfun(@numel,Out)sum(a==1) MATLAB: How to see previous results while tabulating Change where you put your print statements to see running total.fprintf('\n\n%18s%18s%18s\n','it_no','x','f(x)');while 1 it_no=it_no+1; xprev=x; x=xprev-(f(x)./dfdx(x)); if f(x)<10^-4; break end fprintf(' %17.0f\t %17.7f\t %17.7f\t\n',[it_no,x,f(x)]);endFor faster code, you could vectorize it, but it would print after the loop not while running in the loop. Related QuestionHow to count the number of empty cells in an arrayHow can I convert cell to doubleHow to See Regionprops Results on Seperate WindowsHow can i use ‘sum’ for a ‘cell array’
Best Answer