MATLAB: Mark specific values on a plot! mark values specific plot min max Hi consider the following plot: x=1:100; y=600+(1400-600).*rand(100,1); plot(x,y) How can I mark the y values between 900 and 1100? Thanks! Best Answer Additional to your code, use the following lines:yMark=zeros(1,100);%preallocation for speedfor i=1:1:length(y)if(y(i)>=900 && y(i)<=1100)yMark(i)=y(i);endendplot(x,yMark,'->') Related SolutionsMATLAB: How to make an array of sin(1), sin(2), … , sin(100) x=1:100;sinarray=sind(x) MATLAB: Y+Y+Y=MY what is the value of Y In roman numerals, Y represents 150. Related QuestionMATLAB two Graph PlottingHow to solve this error “Operands to the || and && operators must be convertible to logical scalar values.”Hi,I don’t understand why this is not right,I am a completely new learner!I got an error when i run this code
Best Answer