How to store plot function in one single variable

5 visualizaciones (últimos 30 días)
prateek bhadauria
prateek bhadauria el 27 de Jun. de 2020
Comentada: prateek bhadauria el 27 de Jun. de 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 .

Respuestas (1)

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

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by