How to plot surface after saving from a function?

9 visualizaciones (últimos 30 días)
Bewler
Bewler el 25 de Sept. de 2019
Comentada: darova el 26 de Sept. de 2019
I have a function [plot] = SurfacePlot(file), it takes an input file and outputs the plot
Plot is saved as plot = surf(X,Y,Z)
In my main code I save a variable to the function so the variable takes on the value of plot.
After I modify the plot, the variable shows it has all of the data however I don't understand how to make it show the plot rather than its attributes. Normally I have everything in one long line of code and I would call surf(X,Y,Z), modify it's properties and don't use any saving however I want to collect multiple plots and make this much cleaner.
  1 comentario
darova
darova el 26 de Sept. de 2019
Can you please show sample code? The question is unclear for me

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by