how can I plot in symbolic math with defined x axis limit and Y axis limit with marker at specific points

3 ビュー (過去 30 日間)
I want to plot in symbolic math fplot with x axis between 0 to 4 and y axis between 0 to 50. I also want put marker at x=1,x=2,x=3 on the graph
syms x
T=[1 x x^2 x^3];
l=1
N=[1 0 0 0;0 1 0 0;-3/l^2 -2/l 3/l^2 -1/l;2/l^3 1/l^2 -2/l^3 1/l^2]
g=[1 2 3 4]'
f=T1*N*g
fplot(f)

採用された回答

Steven Lord
Steven Lord 2022 年 1 月 14 日
syms x
T=[1 x x^2 x^3];
l=1;
N=[1 0 0 0;0 1 0 0;-3/l^2 -2/l 3/l^2 -1/l;2/l^3 1/l^2 -2/l^3 1/l^2];
g=[1 2 3 4]';
f=T*N*g; % Had to change T1 to T here
fplot(f)
hold on
xpts = 1:3;
plot(xpts, subs(f, x, xpts), 'o')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by