Mirror image/plot flip
    24 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Grace
 el 4 de Sept. de 2022
  
    
    
    
    
    Comentada: Grace
 el 4 de Sept. de 2022
            I want to plot the mirror image of a cubic curve. 
In other words, I intend to flip the plot, but I do not want the x- axis to change. 
This is my code and the plot. Thank you
clear all;close all;clc;
x=linspace(0, 100);
y=x.^3;
plot(x,y,'LineWidth', 2);set(gca,'xdir','reverse')
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 4 de Sept. de 2022
        clear all;close all;clc;
x=linspace(0, 100);
y=x.^3;
plot(x,fliplr(y),'LineWidth', 2);set(gca,'xdir','reverse')
5 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Surface and Mesh Plots 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!







