Converting Matrix Dimensions in MATLAB

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 5K views
pige
Messages
3
Reaction score
0
Hello, first post, probably a beginner question, but I am stumped.

I modeled a set of data in MATLAB using the finite difference method. I then solved the system of linear equations and the solutions are in an N x 1 matrix. The problem is, I need to use the pcolorcommand to plot it and need it back in the original square or rectangular form. I tried using a nested loop to take the values back but couldn't succeed. Any help is appreciated.
 
Physics news on Phys.org