MATLAB: Removing 1 column of ydata deleteeditplottingremovescriptydata Hi there, I was wondering if there was a way to delete a single column of ydata in a plot without having to do it manually each time? Thanks, Ben Best Answer ... Just don't plot it?not_col = 7; %for exampleyt = ydata;yt(:,not_col) = [];plot(yt)ornot_col = 7; %for exampleplot( ydata(:, setdiff(1:size(ydata,2), not_col) )) Related SolutionsMATLAB: Frames not appearing using robotics system toolbox Maybe the frames have a default size that is much smaller than the robot. If you divide the distance values of the DH parameters by say 1000, do the frames show up?- Sebastian MATLAB: Extracting y-data from ezplot. Hi,you need to get the contourMatrix:bla = ezplot('1.5*x.^.56*y.^.44=1', [0 6 0 6]);tmp = get(bla,'contourMatrix');figureplot(tmp(1,:),tmp(2,:))set(gca,'ylim',[0 6])Small note: Don't name a variable, e.g. "cd" like a MATLAB function. Related QuestionHow to use ‘for’ in this exampleExtract xdata and ydata from hggroupHow to use Python pandas in MATLABReplacing every columns of nan with the mean of each columnsReverse the y-data in Matlab
Best Answer