I want to plot some thing like this picture how can i do this ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sunil Oulkar
el 7 de Mzo. de 2016
Editada: Image Analyst
el 7 de Mzo. de 2016
Please see attachment below...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156938/image.png)
1 comentario
Respuesta aceptada
Jos (10584)
el 7 de Mzo. de 2016
Use AXES to create a new axis relative to the another axes
x = 0:100 ; y = exp((x/50).^2)+rand(size(x)) ; % some data
% plot #1
ph = plot(x,y,'b-')
hold on
fill(x([1 1 50 50]),y(1) + [1 -1 -1 1],[1 1 0])
hold off ;
uistack(ph,'top')
% insert plot
p0 = get(gca,'position')
p1 = [p0(1)+0.1 p0(2)+0.3 p0(3)/2 p0(4)/2]
axes('Position',p1)
plot(x(1:50),y(1:50),'b-')
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!