convert column to matrix

Hi all,
I want to convert a matrix like this:
Could you help?
Thanks Huy

3 Comments

KL
KL on 27 Apr 2017
You've got three variables but what do you mean by the second table? What's the row name and column name?
wave_buoys
wave_buoys on 27 Apr 2017
Edited: wave_buoys on 27 Apr 2017
Hi, the row is "DIRECTION" and the column is "FREQUENCY". I want to plot a matrix FREQUENCY x DIRECTION. Each (FREQUENCY, DIRECTION) has a value (ENERGY DENSITY=2nd column).
Thanks
Could you try this file and help me?
Thanks

Sign in to comment.

 Accepted Answer

Stephen23
Stephen23 on 27 Apr 2017
Edited: Stephen23 on 27 Apr 2017
Use griddata, probably something like this:
[yq,xq] = ndgrid(0:0.1:2,0:60:360);
vq = griddata(x,y,v,xq,yq);

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Asked:

on 27 Apr 2017

Commented:

on 27 Apr 2017

Community Treasure Hunt

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

Start Hunting!