필터 지우기
필터 지우기

convert column to matrix

조회 수: 1 (최근 30일)
wave_buoys
wave_buoys 2017년 4월 27일
댓글: wave_buoys 2017년 4월 27일
Hi all,
I want to convert a matrix like this:
Could you help?
Thanks Huy
  댓글 수: 3
wave_buoys
wave_buoys 2017년 4월 27일
편집: wave_buoys 2017년 4월 27일
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
wave_buoys
wave_buoys 2017년 4월 27일
Could you try this file and help me?
Thanks

댓글을 달려면 로그인하십시오.

채택된 답변

Stephen23
Stephen23 2017년 4월 27일
편집: Stephen23 2017년 4월 27일
Use griddata, probably something like this:
[yq,xq] = ndgrid(0:0.1:2,0:60:360);
vq = griddata(x,y,v,xq,yq);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by