how to save a function or vector defined by a given plot

4 views (last 30 days)
i ve plotted a graph using plot function, now i want this plot to be saved in a vector so that i can use it later on by combining it.

Answers (1)

Star Strider
Star Strider on 11 May 2020
Use the savefig (or saveas) functions to save it as a .fig file. Everything about it, including the data used to create it, will be saved in the file. Gertting the information back from the file is not always straightforward, however it can be done with a few lines of code.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!