How to do a contour plot of a matrix C with respect to matrices A and B as X and Y axis?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
I have three matrices A,B and C having same size 40*40. I want to plot a contour of C(40*40) taking A(40*40) as x axis and B(40*40) as y axis. Is it the correct way to plot by the following code ? Please help.
contourf (A,B,C);
Risposte (1)
Sean de Wolski
il 14 Ott 2014
A and B need to be monotonically increasing grids as would be the result from meshgrid
[xx,yy] = meshgrid(linspace(0,1,40));
contour(xx,yy,magic(40))
3 Commenti
TRAILOKYA
il 14 Ott 2014
Sean de Wolski
il 14 Ott 2014
Read the documentation for meshgrid and contour.
TRAILOKYA
il 15 Ott 2014
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!