how can I plot in symbolic math with defined x axis limit and Y axis limit with marker at specific points
4 views (last 30 days)
Show older comments
rakesh kumar
on 14 Jan 2022
Commented: rakesh kumar
on 14 Jan 2022
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 Comments
Accepted Answer
Steven Lord
on 14 Jan 2022
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')
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!