draw the multiple-measurement training data(3D) and single predicted data(3D) in 2D
Show older comments
now my training data is
train = [
1 2 11
1 2 11
1 2 12
1 2 11
1 2 11
1 2 12
1 3 17
1 3 15
1 4 18
1 4 18
1 3 15
1 3 16
1 3 17
1 3 15
1 3 16
1 3 17
1 3 15
1 3 15
1 3 15
1 3 16
1 2 12
1 2 11
1 2 11
1 2 11
1 4 18
1 4 18
1 4 18
1 4 17
1 4 17
1 4 17
1 4 17
1 4 17
]
my predicted data is
predData= [
1 2 11.5
1 3 16
1 4 17.5
]
how to draw them together to check if my prediction value is good or not?
the follow picture is what I want to get

the difficulty is that our data is tuple
(x_coordinate,y_coordinatem,value),
If we want to draw train data and pred data together, we have to sort them in same order.
the x and y coordinates will be a new X-axis value in the figure I want to draw.
I hope x_coordinate as the first sort key word and y_coordinatem as the second sort key word.
Now I can draw predData easily,but I don't know how to draw the train data into this figure.
[lengPredData,~]=size(predData);
i = 1:lengPredData;
plot(i,predData(:,3),'o');
Accepted Answer
More Answers (0)
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!