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

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

回答 (2 件)

Anuj
Anuj 2014 年 2 月 6 日
編集済み: Anuj 2014 年 2 月 6 日
X = sym('X')

2 件のコメント

gavr
gavr 2014 年 2 月 6 日
thank you
gavr
gavr 2014 年 2 月 6 日
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

サインインしてコメントする。

syms x
f = sin(x);
xvals = 0 : .01 : 2*pi;
plot(xvals, double(subs(f, x, xvals)));

カテゴリ

質問済み:

2014 年 2 月 6 日

回答済み:

2014 年 2 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by