How to store plot function in one single variable

5 views (last 30 days)
is it possible to store plot function in one variable with example like plot(a,b,c,d,e,..f) with dimension a is 996x1,b is996x1,c is -20,d is 996x1 likewise and with some numeric values .I want to store like that
data=plot( somefunction here) (a,b,c,d,e,..f) it is possible in any manner ?
data=plotSINR(a,b,c,d...f) .
I want to store the plot variables in single variable so that .

Answers (1)

madhan ravi
madhan ravi on 27 Jun 2020
C = {a, b, c, d, e, f};
plot(C{:})
  1 Comment
prateek bhadauria
prateek bhadauria on 27 Jun 2020
Thank you madan for your quick reply , your answer is correct for when i am not applying any function next to plot command ie in same way as you given the answer,
but i want to save the plot function like it plots the the same plot
data= plotSINR(a,b,c,d...f)
but when i write and save plotSINR and try to save in data variable it gives error SINR is inbuilt function init ,it give error too many arguments .if you understand my problem i want to store the plot function in one variable and then call this variable in deep learning algorithm directly using by calling single variable in that script so that i will compare the graph.
I have attached the error and the plot which i want directky aby savinf plotSINR FUNTION.

Sign in to comment.

Categories

Find more on Line 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!