MATLAB: How to set ytickslabel in graph version R2011b how to set ytickslabel in graph version r2011b Hi, The graph has ylim([-1 1]) in y axis. Values are displayed -1 -0.5 0 0.5 1 in y axis How to set ytickslabel in graph like -1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1 in y axis? Best, Best Answer figure1 = figure; % Create axes axes1 = axes('Parent',figure1,... 'YTick',[-1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1]); box(axes1,'on'); hold(axes1,'all'); % Create plot plot(-1:1); Related SolutionsMATLAB: How to make a code that will count the number of times the sign changes succesively through an array pos = DAX>0; changes = xor(pos(1:end-1),pos(2:end)); num = sum(changes) MATLAB: How to draw grid lines at specific x- and y-ticks How about using xline and yline functions?The following is an example:% Sample plotfigurescatter(-1+2*rand(100,1),-1+2*rand(100,1))ax = gca;ax.XTick = -1:0.25:1;ax.YTick = -1:0.25:1;box on% Add x = 0 and y = 0 linesxline(0,'--')yline(0,'--') Related QuestionSeting ticks on axisHow to separate signals with diffrent frequenciesHow to assign discrete values in a single matrix by considering four conditionsComparing two separate for loopsI am defining the nodes . the first set is how i want it but when i run it, it gives me the error of #Subscript indices must either be real positive integers or logicals but if i swap the last two enteries it works fineFourier analysis of waveforms and clipping wave, HELP PLEASE!!!3 bit binary signal to numerical value
Best Answer