필터 지우기
필터 지우기

Why can the coordinates in "stem3" be defined only as vectors not matrices?

조회 수: 2 (최근 30일)
Why can the coordinates in "stem3" be defined only as vectors not matrices?

채택된 답변

Star Strider
Star Strider 2017년 1월 22일
The stem plots are intended to depict discrete data, specifically relating to signal processing, not the continuous data of other plots. If you have a matrix, use surf or mesh or related functions.
You can use stem3 with matrix arguments if you convert them into vectors first. For example if ‘X’, ‘Y’ and ‘Z’ are equal-sized matrices, you can convert them to vectors and plot them as:
figure(1)
stem3(X(:), Y(:), Z(:))
grid on

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Stem Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by