How to store plot function in one single variable

5 Ansichten (letzte 30 Tage)
prateek bhadauria
prateek bhadauria am 27 Jun. 2020
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 .

Antworten (1)

madhan ravi
madhan ravi am 27 Jun. 2020
C = {a, b, c, d, e, f};
plot(C{:})
  1 Kommentar
prateek bhadauria
prateek bhadauria am 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by