Plotting negative and positive values with different colors in a graph
이전 댓글 표시
I have a correlation coefficients matrix consisting of positive and negative values and I need to plot the graph for that matrix separating positive and negative values with different colors to distinguish them.
답변 (1개)
Shrestha Kumar
2018년 5월 31일
0 개 추천
Hi,
You can find your answer here-
https://in.mathworks.com/matlabcentral/answers/285397-plotting-negative-values-with-blue-and-positive-values-with-red
댓글 수: 2
Chandrika Avvaru
2018년 5월 31일
Shrestha Kumar
2018년 5월 31일
Ok, so what you can do is that you can create two separate linear arrays of positive and negative numbers from the matrix and then plot each array with different color.
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!