How to plot surface after saving from a function?

조회 수: 2 (최근 30일)
Bewler
Bewler 2019년 9월 25일
댓글: darova 2019년 9월 26일
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
darova
darova 2019년 9월 26일
Can you please show sample code? The question is unclear for me

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by