MATLAB: I have a question about plot. Plesase help me. MATLABplot I want to draw a line x = a perpendicular to the x axis in matlab. How do I do ? (with a = constant) value y from 3 to 5. Best Answer s=get(gca,'ylim')hold on;plot([a a],s) Related SolutionsMATLAB: How to plot a box on an existing plot xmin=0;xmax=1;ymin=0;ymax=1;plot([xmin xmax xmax xmin xmin],[ymin ymin ymax ymax ymin])orrectangle('position',[xmin ymin xmin xmax]) MATLAB: How to add images to data points clc; clear all ;data = rand(10,2) ;x = data(:,1) ; y = data(:,2) ;% Let's try again.% Plot the original dataplot(x,y);hold on; %dx = 0.08 ; dy = 0.08 ; %# Add to the plotxmin = x-dx ; xmax = x+dx ;ymin = y-dy ; ymax = y+dy ;% Make background transperentimg = imread('14.png');img = flipud(img) ;for i = 1:length(data) h = image([xmin(i) xmax(i)],[ymin(i) ymax(i)],img); %# P`lot the imageendYOu need to play around and refine the above lines of code. Related QuestionTo 3Dplot a function that is inside a nested for loopShaded confidence interval plotting with shade area (patch)
Best Answer