how to scatter datapoint into an existing semilogplot?

조회 수: 5 (최근 30일)
Johannes
Johannes 2018년 12월 19일
답변: Johannes 2018년 12월 19일
Hey,
I have got an existing semilogx plot with data from literature. Now i would like to scatter my own measurements into that existing figure. The problem is, that even two semilogx with hold on aren't possible without getting back to normal scaled axes. I need the scatter function to color my datapoints by a third variable. Is there a way to get this two plots in one figure?
Thanks!

채택된 답변

Johannes
Johannes 2018년 12월 19일
Ok, I found the answer by myself
hold on
plot(x1,y1,x2,y2);
scatter(x3,y3,[],z3);
set(gca,'xscale','log')
grid on

추가 답변 (0개)

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by