E46Fanatics - View Single Post - CS Guys - Help me out really quick
View Single Post
Old 03-17-2013, 11:34 AM   #24
.--. . -. .. ...
cowmoo32's Avatar
Join Date: Jul 2003
Location: FL
Posts: 5,545
My Ride: Yukon, E92 M3
Ok, who knows arrays?

I have two arrays, 1D and 2D. I need to plot plot the 1D on the X axis and the rows of the 2D on the Y. So for every X value, I have a row in the 2D array that should be plotted in the Y. I can plot the 1D against a single value from the 2D, but I keep getting a dimensional mismatch error when I try to plot the entire row against the 1D, and I'm not sure why.

Here I'm trying to plot a single row against the 1D array, the end goal plotting every row against every value in the 1D array.
drive_force is 1 x j and theta is n x j. Would it work if I transposed theta to j x n?

Last edited by cowmoo32; 03-17-2013 at 11:34 AM.
cowmoo32 is offline   Reply With Quote