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

4 visualizaciones (últimos 30 días)
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)

Respuesta aceptada

Steven Lord
Steven Lord el 14 de En. de 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')

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by