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

조회 수: 2 (최근 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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by