How to generate Matlab plot for this data?

조회 수: 7 (최근 30일)
MS Amber
MS Amber 2019년 9월 29일
댓글: Walter Roberson 2019년 9월 30일
I have some data in excel sheet column 1 "control" and column 2 "experiment" (aprox 3000 data points in each column), how can I write a program where it can generate plot for these two column and the values I only need to keep from the columns would be in range of 0.5 to 3 only and exclude above and below it. How can I include statistics as well, like P values significance in program. I want to generate boxplot for control and experiment. Can you please share the written program for this.
Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2019년 9월 29일
filename = 'YourFile.xlsx';
data = xlsread(filename);
ce = data(:,1:2);
mask = all(ce >= 0.5 & ce <= 3);
usable_control = ce(mask,1);
usable_experiment = ce(mask,2);
in order to include P values significance, you need a hypothesis, which you have not told to us.
boxplot([usable_control, usable_experiment]);
  댓글 수: 2
MS Amber
MS Amber 2019년 9월 29일
Thanks a lot! I can see now how it is working. Great learning place and support!
Walter Roberson
Walter Roberson 2019년 9월 30일
You can attach images here. Click on the picture frame, the left-most in the INSERT section of tools.

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

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by