MATLAB: Beginner MATLAB question (I just started using matlab a week ago) beginnerfindMATLAB Please help give the function to solve this. Thank you Best Answer Simpler and more efficient to use logical indexing:idx = ss(:,1)==1;out = ss(idx,2)If you really want to use |find|:idy = find(ss==1);out = ss(idy,2)Basic MATLAB concepts, such as how to use indexing, are explained in the introductory tutorials:https://www.mathworks.com/help/matlab/getting-started-with-matlab.html Related SolutionsMATLAB: For loop – splitting data you have to do an eval.eval(['Fish2_', num2str(i), ' = Data(1,3,i);'])instead ofFish2_i = Data(1,3,i); MATLAB: How do i delete questions You need to call the function with all of its output arguments, e.g. (pick the names to suit your needs):[A,B,C,D] = DiagDom();Very basic MATLAB concepts, e.g. how to call functions with multiple output arguments, are explained in the introductory tutorials:https://www.mathworks.com/help/matlab/getting-started-with-matlab.html Related Question… … … …Array only saves last run of results from nested FOR Loop
Best Answer