How to store plot function in one single variable

조회 수: 5 (최근 30일)
prateek bhadauria
prateek bhadauria 2020년 6월 27일
댓글: prateek bhadauria 2020년 6월 27일
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