How to plot only the tensor diagonals?

조회 수: 4 (최근 30일)
GTA
GTA 2019년 5월 20일
편집: per isakson 2019년 5월 20일
Hello guys,
I'm trying to perform a subplot where my V variable is not plotting. Highlighting that both variables P (1,1, :) and V (1,1, :) are tensors. Except that when putting this format accuses error. So I chose P (1,1) and V (1,1), because I'm only wanting the diagonals of all the matrices of the iterations. Can someone help me? I am sending the code and the figure you are plotting, but my P variable is not plotting.
figure(8)
subplot(3,1,1)
plot(t,P(1,1),'r', t,V(1,1),'*b')
title({'Estimates of errors'},'FontSize',16,'FontName', 'Times New Roman')
legend('P', 'V');
subplot(3,1,2)
title({'Estimates of errors'},'FontSize',16,'FontName', 'Times New Roman')
plot(t,P(2,2),'r', t,V(2,2),'*b')
legend('P', 'V');
title({'Estimates of errors'},'FontSize',16,'FontName', 'Times New Roman')
subplot(3,1,3)
plot(t,P(3,3),'r', t,V(3,3),'*b')
legend('P', 'V');
title({'Estimates of errors'},'FontSize',16,'FontName', 'Times New Roman')

답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by