MATLAB: Possible to use logical indexing with an array argument vectorization is there a way I can convert this code for i=1:15653 label == iend to a vectorized one ? i=1:15653; label == i Best Answer Hello,WhateverYouWant = (label == 1:15653);Note: assuming label is also a 15653 length vector OR a scalar.Hope this helps! Related SolutionsMATLAB: Argument Question I think this is what they meant -In the function file:function outputVar = myfunction(inputVar)% write the rest of the program here, using inputVar as you would a stringWhen you call the function you give it a string:thisoutput = myfunction('data1.txt') MATLAB: Argument passing issue. https://www.mathworks.com/help/matlab/math/parameterizing-functions.html Related Question
Best Answer