MATLAB: Explain the square brackets square brackets Hello guys, can you explain the line: [h, v] = boundary(h,v, leftboundary, rightboundary,N,Choice); I mean [h,v],boundary(is it a function?), and finally inside the brackets. thanks in advance, Basheer Best Answer Read the documentation http://www.mathworks.com/help/matlab/ref/function.htmlYou have to assign values toh=1,v=2leftboundary=3rightboundary=4N=5Choice=6;Then call your function[h, v] = boundary(h,v, leftboundary, rightboundary,N,Choice); Related SolutionsMATLAB: Tight Boundary around a Set of Points [ux, ia, ib] = uniquetol(x, 0.01);for i= 1:max(ib), M(i,:) = [min(y(ib == i)) max(y(ib == i))]; endplot(x, y, '.')hold onplot(ux, M(:,1), 'r-')plot(ux, M(:,2), 'r-')This is how it looks like MATLAB: Validating a String Using a While Loop while ~ismember(choice, 'vcVC') choice = input('ERROR! Please enter either V or C: ', 's');endOrwhile choice ~= 'v' && choice ~= 'V' && choice ~= 'c' && choice ~= 'C' choice = input('ERROR! Please enter either V or C: ', 's');endorwhile ~(choice == 'v' || choice == 'V' || choice == 'c' || choice == 'C') choice = input('ERROR! Please enter either V or C: ', 's');end Related QuestionDeviation of vehicle from Lane Center
Best Answer