Help! Scatter command question
조회 수: 1 (최근 30일)
이전 댓글 표시
Plot the data below [hint: use the scatter command] so that you can compare the activity levels of the two genes across the group of patients. Add the correct titles to the axes and set the range to be -10 to 30 on the x-axis and -10 to 30 on the y-axis. This should yield Figure 1. DATA: GeneA = [1.1 0.5 27 1.4 1.9 2.6 3.2 8.1 4.1 0.4 9.4 13 14.1 9.1 18.2 2.1 5.3 16.4 7 21.1 0.3 7.5 17.1 5.2 13.1]; GeneB = [0.2 0.6 11 0.9 1.2 0.9 1.8 4.4 2.5 0.3 5.9 7.9 5.9 6.1 7.2 1.8 1.6 6.1 5 10.1 0.2 4.0 8.8 1.5 4.2];
댓글 수: 0
답변 (1개)
VBBV
2023년 5월 2일
편집: VBBV
2023년 5월 2일
GeneA = [1.1 0.5 27 1.4 1.9 2.6 3.2 8.1 4.1 0.4 9.4 13 14.1 9.1 18.2 2.1 5.3 16.4 7 21.1 0.3 7.5 17.1 5.2 13.1];
GeneB = [0.2 0.6 11 0.9 1.2 0.9 1.8 4.4 2.5 0.3 5.9 7.9 5.9 6.1 7.2 1.8 1.6 6.1 5 10.1 0.2 4.0 8.8 1.5 4.2];
Patientdata = [GeneA;GeneB]
X = linspace(-10,30,length(GeneA));
Y = X;
scatter3(X,Y,Patientdata);
xlabel('x-range:[-10,30]');ylabel('y-range:[-10,30]')
legend('GeneA','GeneB')
view([30 45])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!