got a vector from a plot

6 Ansichten (letzte 30 Tage)
Diego Núñez García
Diego Núñez García am 14 Jul. 2021
Beantwortet: KSSV am 14 Jul. 2021
here I plot two graphs from four polynoms with dis code:
figure()
for i=1:length(nodos)-1
plot([nodos(i):0.01:nodos(i+1)],polyval([Mx(:,:,i)],[nodos(i):0.01:nodos(i+1)]),'-','LineWidth',2.5,'Color','b')
hold on % Different colored lines
end
xlabel('Longitud de la Viga [m]')
ylabel('Fuerza cortante[N]')
yline(0)
figure()
for i=1:length(nodos)-1
plot([nodos(i):0.01:nodos(i+1)],polyval([Vx(:,:,i)],[nodos(i):0.01:nodos(i+1)]),'-','LineWidth',2.5,'Color','b')
hold all % % Different colored lines
end
xlabel('Longitud de la Viga [m]')
ylabel('Momento Flector [n*M]')
yline(0)
but I would like to have a vector with the values in y

Antworten (1)

KSSV
KSSV am 14 Jul. 2021
Read about quiver. You can use this for vector arrow plots.

Kategorien

Mehr zu Vector Fields finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by