필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how can plot this figure?

조회 수: 1 (최근 30일)
Sahar abdalah
Sahar abdalah 2015년 8월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello, please I want to plot a figure like this, please help me , how can do it? any implementation and thanks in advance
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2015년 8월 7일
What about your data?
Sahar abdalah
Sahar abdalah 2015년 8월 7일
I have a vector that contain number of class
numberclass=[50,100,250,500,1000]
I want to plot the variation of result between 3 feature : the accuracy of the feature1 is :
Accuracy1=[94,90,88,79,77]
the accuracy of the feature2 is :
Accuracy2=[90,80,79,75,71]
the accuracy of the feature3 is :
Accuracy3=[98,90,85,70,60]

답변 (1개)

Star Strider
Star Strider 2015년 8월 7일
Use the hold function to put multiple plots on the same set of axes:
numberclass=[50,100,250,500,1000];
Accuracy1=[94,90,88,79,77];
Accuracy2=[90,80,79,75,71];
Accuracy3=[98,90,85,70,60];
figure(1)
plot(numberclass, Accuracy1)
hold on
plot(numberclass, Accuracy2)
plot(numberclass, Accuracy3)
hold off
grid
xlabel('Number of selected classes')
ylabel('Classification Accuracy')
  댓글 수: 2
Sahar abdalah
Sahar abdalah 2015년 8월 7일
thank you for your answer, but I want to have another result like image in the question with colors and details.Can you help me?
Star Strider
Star Strider 2015년 8월 7일
My pleasure.
The documentation for the plot and legend functions have all the information you need to make a plot like the one you provided in your Question. Anything I would provide here would simply be restating what is already in the documentation.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by