How do I plot MSE of 3D-values?

Hello all,
I've made a Monte Carlo Analysis and with the result of this data I'd like to plot the MSE in a XYZ-mode. The data is a matrix(n by 3) of respective XYZ values.
An example of what I'm trying to achieve is: https://static-content.springer.com/image/art%3A10.1186%2Fs40064-015-1173-6/MediaObjects/40064_2015_1173_Fig13_HTML.gif
Thanks in advance

답변 (1개)

Mike Garrity
Mike Garrity 2016년 3월 23일

0 개 추천

Those plots would be created by the surfc function, but it wants gridded data and it sounds like you have scatter data.
I wrote a post on the MATLAB Graphics blog recently about how to get from scatter data to gridded data. It should be enough to get you started.

댓글 수: 5

I tried this:
M = [X Y Z];
W = [MSE]
surfc(M(:,1),M(:,2),M(:,3),W);
But then I get the error: The surface Z must contain more than one row or column.
Mike Garrity
Mike Garrity 2016년 3월 23일
Exactly. You have scatter data and surfc wants gridded data. Follow the link to the blog post about how to grid scatter data.
kishintai
kishintai 2016년 3월 23일
Thanks, I will keep you updated.
kishintai
kishintai 2016년 3월 24일
So, I tried to follow the link on your blog post but I'm still in trouble. If I have an XYZ n by 1 matrix and a n by 1 matrix containing the respective MSE's.
How should I proceed?
Mike Garrity
Mike Garrity 2016년 3월 25일
You basically just need to grid all of your variables using one of the techniques I described there.

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

카테고리

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

질문:

2016년 3월 23일

댓글:

2016년 3월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by