how can I plot in symbolic math with defined x axis limit and Y axis limit with marker at specific points
4 次查看(过去 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)
0 个评论
采纳的回答
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 Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!