vector norms help mat
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Given this code
X = sampleUnitSphere(2, 100);
A = [-2 3;-3 1 ];
AX = A*X;
figure(1); clf; hold on;
plot( X(1,:), X(2,:),'b.');
plot(AX(1,:),AX(2,:),'r.');
legend('Unit 2-ball in R^2', 'Transformation under A')
hold off
axis square equal
If I consider another 2 matrices where B=[ 1 3; 1 1] and C=reshape(1:4,2,2) how do I show the three matrices graphically in one figure using subplot and adding a legend ? the plot where the legend is the following
legend('Unit 2-ball in R^2', 'Transformation under A')
hold off
axis square equal
1 comentario
Respuestas (0)
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!