Hello everyone,

currently i try to understand some code i got from my supervisor in college. My task is to create a 3D plot. I've got vector V.x with dimension 1×41 and a vector V.y with dimension 1×41 as well. Besides that i got a 3D Matrix E with the dimension 41x41x301.

I tried to use surf(V.x,V.y,E).

I get an error because of the dimensions must agree.

Where is the Problem? Is it because of the "x301", because E is a 3D Matrix?

If so, how can i fix it?

Sincerely

Lucas

## Best Answer