how to plot a binary values using matlab
3 ビュー (過去 30 日間)
古いコメントを表示
A= xlsread('m1indicators.xlsx', 'sheet2')
A =
Columns 1 through 7
7313 17351 -4711 -107 -1192 4847 -15753
10101 14677 5132 4064 -8906 7168 6307
-538 16971 4504 1879 10201 3795 2488
3509 8970 2013 1964 -3812 5175 -8889
4407 2292 -441 212 140 3105 -13977
4440 3542 -35 -631 -1446 2360 -12242
-5141 89924 -5836 -3362 -40369 -26319 -21941
-96 42 410 426 255 63 1310
-19 303 -3 187 0 -34 110
20731 43157 5621 8785 10470 12746 14635
-418 -1643 -653 -1331 1172 -624 -1475
17 0 0 0 0 0 0
Columns 8 through 14
1876 1686 22416 2340 7296 7089 -8629
9570 8299 2617 9002 14602 11863 19203
5654 7090 2098 6745 8329 9642 19139
1937 873 20078 10973 8309 11953 13567
1407 -1008 -1520 3488 5290 2644 2014
3693 -2387 943 2596 3097 4164 4779
-1654 -3785 -6725 1361 -3699 16071 5878
135 462 2597 -887 -91 568 31
73 113 164 -209 -27 50 -798
16653 10485 5591 31538 38509 50278 18604
-365 -590 1501 -1095 -514 -1567 -958
0 0 0 0 8 0 0
Columns 15 through 19
-1221 16417 -2792 -2981 -319
6584 4780 3349 6150 3439
3739 16005 6939 8539 9519
4558 -4204 2886 5060 3696
162 -3848 -1745 -687 -1613
101 -10830 -1282 -2102 -1947
2797 -49295 -10199 -12250 -31192
1028 417 171 -253 31
-118 29 -64 -30 -26
3113 17717 20035 36543 23136
-400 -513 -957 -1604 -509
0 8 0 0 0
B= sign(A)==-1
B =
Columns 1 through 15
0 0 1 1 1 0 1 0 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 1 0 0 0 0 0 0 0 0
0 0 1 0 0 0 1 0 1 1 0 0 0 0 0
0 0 1 1 1 0 1 0 1 0 0 0 0 0 0
1 0 1 1 1 1 1 1 1 1 0 1 0 0 0
1 0 0 0 0 0 0 0 0 0 1 1 0 0 0
1 0 1 0 0 1 0 0 0 0 1 1 0 1 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 0 1 1 1 1 0 1 1 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 16 through 19
0 1 1 1
0 0 0 0
0 0 0 0
1 0 0 0
1 1 1 1
1 1 1 1
1 1 1 1
0 0 1 0
0 1 1 1
0 0 0 0
1 1 1 1
0 0 0 0
how should I plot a graph for above binary values..? each row corresponds to an indicators and each column corresponds to district of westbengal data set with rows as indicators and columns as districts of year(11-10) now i want.. after plotting the graph , districts should be on X labels and indicators should be on y labels..
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157726/image.png)
2 件のコメント
Image Analyst
2016 年 3 月 14 日
Did you follow the directions in the help for setting tick marks? I thought it was rather clear from the examples.
回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!