How do I plot a 3D data set in matlab?

조회 수: 2 (최근 30일)
Amit Singh
Amit Singh 2018년 6월 11일
답변: KSSV 2018년 6월 11일
I have a 2 dimensional matrix of size 50x200. The matrix is the data set of audio samples(200 samples) which are taken at 50 different locations. I wish to plot this data in a 3D graph where the audio samples are plotted against the locations and time. Also is there a way I can view a 2D plot at a particular location, say x (0<x<50) from the 3D plot I obtain from above? I read a lot of documentation about this but couldn't come up with a logical solution.

채택된 답변

KSSV
KSSV 2018년 6월 11일
Read about surf to plot in 3D....also have a look on pcolor. To plot your desired range read about axis, xlim, ylim and zlim.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by