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 visualización (últimos 30 días)
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

Respuestas (2)

Anuj
Anuj el 6 de Feb. de 2014
Editada: Anuj el 6 de Feb. de 2014
X = sym('X')
  2 comentarios
gavr
gavr el 6 de Feb. de 2014
but what i really want is i need to create a continuous variable suppose x and plot sinx i will define x as just real number can you write code for this please

Iniciar sesión para comentar.


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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by