Hello everyone,
I have two series of data as follows: x=[0.8288 1.021 1.2093 1.4674 1.7577 1.9679 2.2465 2.9532]; y=[0.8242 1.05976 1.2804 1.5481 1.79315 2.0521 2.3475 2.9939];
In which x is experiment values (horizontal axis) and y (vertical axis) is models data. I would like to have a parity plot including a bisector , upper bound and lower bound limited within 5% as scatter error.
How can I write a code for this? Thanks in advance

 채택된 답변

pfb
pfb 2015년 4월 13일
편집: pfb 2015년 4월 14일

0 개 추천

% scatter plot
plot(x,y,'.');
hold
% bisector (basically the same as Thorsten)
plot([0.5 3],[0.5 3]);
% upper and lower bounds (?)
plot([0.5 3],1.1*[0.5 3]);
plot([0.5 3],0.9*[0.5 3]);

댓글 수: 7

Parham Babakhani Dehkordi
Parham Babakhani Dehkordi 2015년 4월 13일
again only bisector appeared, I attached an excel file for you as an example. you can easily understand what I meant by upper and lower bound.
pfb
pfb 2015년 4월 13일
sorry, I forgot to hold the plot. Now it should work
Parham Babakhani Dehkordi
Parham Babakhani Dehkordi 2015년 4월 14일
sorry but it does not work properly. it seems ok, however no improvement. I attached the result in a curve for you.
Parham Babakhani Dehkordi
Parham Babakhani Dehkordi 2015년 4월 14일
Attached file is the result by your code.
pfb
pfb 2015년 4월 14일
sorry, I did a stupid mistake. Now it should work
Parham Babakhani Dehkordi
Parham Babakhani Dehkordi 2015년 4월 14일
Perfect, now it works Thanks a lot
Thangaraja J
Thangaraja J 2023년 2월 6일
Thank you for the query and the corresponding answer

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

추가 답변 (1개)

Thorsten
Thorsten 2015년 4월 13일

1 개 추천

plot(x,y, '.')
line([0.5 3],[0.5 3])

댓글 수: 1

Parham Babakhani Dehkordi
Parham Babakhani Dehkordi 2015년 4월 13일
these two code lines give me only the bisector. If I want to define data in a range, lets say, +10% and -10% as upper and lower bound of bisector, how can I create this?

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

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

질문:

2015년 4월 13일

댓글:

2023년 2월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by