How can I make a axis with 3D array?

I have two velocity arrays (lon x lat) and I need to save it in X-axis and Y-axis. Consider u e v as vectors decompositions of velocity.
How can I do that?
Thanks for any help!

9 Comments

Is your data complex-valued? For any particular wind position wind(J,K) then how do you calculate the u and v values?
As always, far better to attach some sample data rather than try to describe in words. Then, as Walter says, show us from that a specific set of inputs/desired outputs and how the latter is obtained from the former if not totally trivially obvious.
Sorry! I will try explain better.
I have files which represent seven days of daily values of several meteorological variables. Each file is constituted by a certain region of the globe. Therefore, each variable within the file has 24 data matrices (lon x lat), its dimension is lon x lat x hours.
So, I have to find, with the 'ncdisp' command, the wind speed variable (uv) at 50 meters (I already did that) After, with command 'ncread', I need to save the velocity matrices (lon x lat) on the X (u) axis and the Y (v) axis in a cell. Each row must represent the 24 data matrices of a day.
With the time-value matrices of the X and Y hourly velocities, they must be transformed into velocity in a module (I did that with command variable=abs(variable) ...).
Subsequently, the average should be averaged to obtain the final daily rate. (I did with Variable= [Variable(:,1); Variable(:,2 )]; m1=mean(Variable)).
This should be represented in a cell, again each row should represent a day of analysis.
With the values of the final velocity one must create velocity maps, with the 'mesh' command, in 3D, representing the values of the in a certain region of the globe;
I already made some phases, but I don't know if I'm correct.
Can you help me?
Is uv complex valued? If not, then how do you get from the uv variable to separate u and v ?
"one must create velocity maps, with the 'mesh' command,"
That is difficult to do, as I indicated in your other post. Please post an image of what you would expect the mesh to look like.
It would probably make more sense to use quiver() or quiver3()
Sorry, I think that I didn't understand your first question. But I have values to U and V vectors, and I need to put this values in one cell.
The mesh should to lool like with this image.
I reiterate; you'd make it a lot simpler if you would just attach a .mat file with representative sample of the data...
And the image isn't; you have go thru two-step process of selecting the file and then "insert image"; just selecting the file isn't enough for some unbeknownst reason... :(
That is not a velocity map: velocity is a vector. That might be a speed map, but not a velocity map.
And do you know how can I do a speed map?
I really need help because I'm new in this part of plot graphics :(

Sign in to comment.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 17 Jun 2018

Commented:

on 17 Jun 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!