How to store plot function in one single variable

5 次查看(过去 30 天)
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 .

回答(1 个)

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

请先登录,再进行评论。

类别

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