can i create a real variable i.e variable which does not have any value but i will specify the datatype of variable and i want to use it for ploting

1 visualizzazione (ultimi 30 giorni)
can i create a real variable i.e variable which does not have any value but i will specify the datatype of variable and i want to use it for ploting

Risposte (2)

Anuj
Anuj il 6 Feb 2014
Modificato: Anuj il 6 Feb 2014
X = sym('X')

Walter Roberson
Walter Roberson il 6 Feb 2014
syms x
f = sin(x);
xvals = 0 : .01 : 2*pi;
plot(xvals, double(subs(f, x, xvals)));

Community Treasure Hunt

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

Start Hunting!

Translated by