필터 지우기
필터 지우기

PLOT SYMBOLS/MARKER FOR TWO SET OF ARRAYS IN A CONTOUR

조회 수: 3 (최근 30일)
University
University 2024년 1월 12일
댓글: Dyuman Joshi 2024년 1월 12일
Hi,
I have two set of arrays:
xi = linspace(0, 100, 10);
L =linspace(0, 0.0001, 10);
and a matrix: intul
and I have plotted a contour with:
contourf(L, xi, intul, [min(min(intul)):0.3e-11:max(max(intul))]);
How do I plot a marker/symbol at each of those coordinates (i.e., the list of the pairs of (xi,L)) in my contour plot.

채택된 답변

Dyuman Joshi
Dyuman Joshi 2024년 1월 12일
Use plot to add markers -
X = linspace(-2*pi,2*pi,10);
Y = linspace(0,4*pi,10);
Z = sin(X) + cos(Y).';
contourf(X,Y,Z)
hold on
plot(X, Y, 'r+', 'LineWidth', 2, 'MarkerSize', 10)
  댓글 수: 2
University
University 2024년 1월 12일
Thank you for your answer. I did this and I got this results but this wasn't I expected.
Dyuman Joshi
Dyuman Joshi 2024년 1월 12일
I am sorry, I don't understand - You didn't expect what?

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by