Azzera filtri
Azzera filtri

Multiple plots with a several of variables

1 visualizzazione (ultimi 30 giorni)
Hello again.
I have more than 200 variables, and i need to plot all at the same time.
I use stackedplot(), but this function have a limit to a maximum of 25 variables.
This is [x]
Columns 1 through 7
0.3100 0.3100 0.2100 0.3300 0.3400 0.3100 0.3800
0.2200 0.1700 0.1800 0.3000 0.1800 0.1900 0.2200
0.1100 0.1000 0.0900 0.1100 0.1100 0.1100 0.1100
0.0800 0.0600 0.0600 0.0900 0.0600 0.0600 0.0500
0.0500 0.0700 0.1000 0.0500 0.0400 0.0700 0.0500
0.0400 0.0400 0.1100 0.0300 0.0600 0.1100 0.0800
0.0600 0.1400 0.0700 0.0200 0.0600 0.0600 0.0300
0.0600 0.0700 0.0800 0.0300 0.1100 0.0500 0.0500
0.0700 0.0400 0.1000 0.0400 0.0400 0.0400 0.0300
Columns 8 through 14
0.2700 0.2700 0.2900 0.3400 0.3100 0.2700 0.2800
0.2300 0.1500 0.2000 0.1400 0.2400 0.2500 0.1700
0.1100 0.1000 0.1600 0.1300 0.0900 0.1200 0.0900
0.0900 0.0800 0.0800 0.0600 0.0800 0.0900 0.1100
0.0600 0.0900 0.0700 0.0700 0.0500 0.0400 0.0900
0.0800 0.1000 0.0300 0.0600 0.0700 0.0500 0.0900
0.0300 0.1000 0.0400 0.0800 0.0200 0.0600 0.0800
0.0800 0.0700 0.0400 0.0800 0.0600 0.0600 0.0400
0.0500 0.0400 0.0900 0.0400 0.0800 0.0600 0.0500
Columns 15 through 21
0.2700 0.2800 0.3400 0.4200 0.3000 0.4000 0.2800
0.1900 0.1900 0.1900 0.1600 0.2000 0.1400 0.1300
0.1200 0.1200 0.1100 0.1200 0.0900 0.1300 0.1200
0.1500 0.1000 0.0700 0.0700 0.0700 0.0400 0.1400
0.0600 0.0700 0.0400 0.0500 0.0700 0.0400 0.1000
0.0500 0.1100 0.0600 0.0600 0.0800 0.0700 0.0900
0.0400 0.0700 0.0500 0.0500 0.1000 0.0500 0.0700
0.0700 0.0300 0.1000 0.0400 0.0300 0.0700 0.0400
0.0500 0.0300 0.0400 0.0300 0.0600 0.0600 0.0300
Columns 22 through 28
0.3100 0.3000 0.3600 0.2800 0.2400 0.2400 0.2900
0.1700 0.1600 0.1200 0.1800 0.1800 0.1400 0.1600
0.1200 0.1000 0.1000 0.1000 0.1000 0.1600 0.0900
0.0900 0.1000 0.1000 0.1000 0.0900 0.1300 0.0900
0.0700 0.1200 0.1000 0.0500 0.0600 0.0900 0.0600
0.0600 0.0600 0.0500 0.0600 0.0600 0.0700 0.1000
0.0900 0.0800 0.0500 0.0900 0.1100 0.0800 0.0700
0.0400 0.0300 0.0600 0.0800 0.0500 0.0500 0.0500
0.0500 0.0500 0.0600 0.0600 0.1100 0.0400 0.0900
Columns 29 through 35
0.2100 0.3400 0.3000 0.3800 0.4200 0.3200 0.2800
0.2200 0.1600 0.1400 0.1900 0.2100 0.1300 0.1700
0.0700 0.0700 0.1000 0.1200 0.0700 0.0800 0.1400
0.1700 0.0700 0.0700 0.0700 0.0700 0.1200 0.0600
0.1900 0.0400 0.0900 0.0700 0.0600 0.1200 0.0600
0.0600 0.1200 0.1000 0.0400 0.0300 0.0800 0.0600
0 0.1000 0.0800 0.0500 0.0200 0.0500 0.1000
0.0300 0.0400 0.0600 0.0400 0.0200 0.0500 0.0800
0.0500 0.0600 0.0600 0.0400 0.1000 0.0500 0.0500
Columns 36 through 42
0.1400 0.3200 0.2600 0.2700 0.3900 0.3100 0.3500
0.4300 0.1600 0.1300 0.1500 0.0600 0.1700 0.1700
0.1900 0.1100 0.1300 0.0800 0.1600 0.0900 0.1400
0.1200 0.1100 0.0900 0.1200 0.1500 0.0700 0.0400
0.0300 0.0900 0.0400 0.1200 0.0900 0.0800 0.0300
0.0400 0.0600 0.1100 0.0600 0.0100 0.0800 0.0400
0.0200 0.0800 0.0800 0.0800 0.0200 0.1100 0.0800
0.0100 0.0500 0.0900 0.0600 0.0800 0.0400 0.1000
0.0200 0.0200 0.0700 0.0600 0.0400 0.0500 0.0500
Columns 43 through 49
0.3000 0.2800 0.3900 0.3100 0.2900 0.3000 0.3600
0.2000 0.1700 0.1400 0.0900 0.1300 0.1600 0.1900
0.1200 0.0600 0.1300 0.1100 0.1100 0.1200 0.1600
0.0900 0.1100 0.0500 0.1500 0.1200 0.0500 0.0900
0.0500 0.0800 0.0600 0.1200 0.0800 0.1300 0.0600
0.0500 0.0900 0.0700 0.0800 0.1000 0.1000 0.0300
0.0700 0.0900 0.0600 0.0400 0.0900 0.0700 0.0300
0.0900 0.0700 0.0600 0.0500 0.0500 0.0200 0.0600
0.0300 0.0500 0.0400 0.0500 0.0300 0.0500 0.0200
Columns 50 through 56
0.3700 0.3500 0.3800 0.3100 0.3100 0.2900 0.3100
0.1600 0.1700 0.1600 0.1600 0.1500 0.1700 0.1600
0.1000 0.1000 0.0900 0.1000 0.1000 0.0800 0.1000
0.0800 0.0800 0.0800 0.0800 0.0800 0.1600 0.0800
0.0400 0.0800 0.0400 0.0700 0.0900 0.0900 0.0900
0.0300 0.0500 0.0600 0.0700 0.0700 0.0800 0.0700
0.0500 0.0600 0.0900 0.0600 0.0900 0.0500 0.0900
0.0900 0.0600 0.0400 0.1000 0.0600 0.0200 0.0300
0.0800 0.0500 0.0600 0.0500 0.0500 0.0600 0.0700
Columns 57 through 63
0.3000 0.3400 0.2900 0.3700 0.2700 0.2800 0.3600
0.1600 0.1700 0.1400 0.1500 0.1800 0.1100 0.1700
0.1200 0.0900 0.1200 0.1100 0.0800 0.1400 0.0700
0.1800 0.0800 0.0800 0.0600 0.0700 0.0900 0.1200
0.0600 0.0600 0.0700 0.0700 0.1600 0.0500 0.0800
0.0500 0.0800 0.0900 0.0700 0.0600 0.0700 0.0800
0.0200 0.1000 0.0900 0.0500 0.1000 0.1200 0.0400
0.0900 0.0300 0.0700 0.0700 0.0400 0.1000 0.0400
0.0200 0.0500 0.0500 0.0500 0.0400 0.0400 0.0400
Columns 64 through 70
0.2300 0.2900 0.2200 0.3200 0.3100 0.3200 0.3000
0.1300 0.1700 0.2000 0.1400 0.1300 0.1600 0.1500
0.2000 0.1200 0.2900 0.0700 0.0800 0.0900 0.0700
0.1100 0.1100 0.1100 0.0700 0.1100 0.0500 0.1300
0.0800 0.1000 0.0300 0.1000 0.0900 0.0800 0.1300
0.0900 0.0800 0.0600 0.0900 0.0800 0.0700 0.0700
0.0500 0.0600 0.0300 0.1100 0.0900 0.0700 0.0700
0.0600 0.0100 0.0400 0.0400 0.0600 0.1100 0.0100
0.0500 0.0600 0.0200 0.0600 0.0500 0.0500 0.0700
Columns 71 through 77
0.3200 0.3200 0.2700 0.4000 0.2700 0.3400 0.2700
0.1500 0.1600 0.2000 0.2100 0.1300 0.1500 0.1200
0.1000 0.0900 0.0800 0.0900 0.1900 0.1500 0.1700
0.1400 0.0800 0.1000 0.0700 0.1200 0.0900 0.1100
0.1200 0.1100 0.1000 0.0400 0.0500 0.0600 0.1000
0.0200 0.0800 0.1000 0.0600 0.1300 0.0300 0.0900
0.0200 0.0500 0.0800 0.0400 0.0200 0.0700 0.0300
0.0400 0.1000 0.0300 0.0500 0.0300 0.0600 0.0600
0.0900 0.0100 0.0400 0.0400 0.0600 0.0500 0.0500
Columns 78 through 84
0.2400 0.3100 0.3100 0.2500 0.4700 0.2900 0.3600
0.1200 0.1100 0.1000 0.1200 0.1300 0.1500 0.1300
0.1400 0.1000 0.1100 0.1800 0.0500 0.1100 0.1100
0.1400 0.0900 0.1300 0.1100 0.1100 0.0800 0.0700
0.1200 0.1200 0.1400 0.1100 0.0800 0.0500 0.0600
0.0500 0.0700 0.0700 0.0300 0.0700 0.1300 0.0500
0.0700 0.0900 0.0400 0.0900 0.0400 0.0600 0.0300
0.0500 0.0500 0.0500 0.0600 0.0400 0.0900 0.1200
0.0700 0.0600 0.0500 0.0500 0.0100 0.0400 0.0700
Columns 85 through 91
0.1500 0.3000 0.2300 0.4000 0.2800 0.2800 0.2900
0.4000 0.1600 0.1800 0.1700 0.1400 0.1500 0.1000
0.2200 0.1100 0.1700 0.1100 0.1200 0.0800 0.0700
0.1200 0.1100 0.1100 0.0700 0.1000 0.1100 0.1700
0.0300 0.1400 0.0800 0.0300 0.0500 0.1200 0.1400
0.0300 0.0500 0.0800 0.0400 0.0900 0.0700 0.0800
0.0200 0.0500 0.0500 0.0200 0.0900 0.1000 0.0800
0.0200 0.0300 0.0500 0.0300 0.0700 0.0400 0.0700
0.0100 0.0500 0.0500 0.1300 0.0600 0.0500 0
Columns 92 through 98
0.3400 0.3900 0.2400 0.3400 0.3200 0.2900 0.2900
0.1400 0.1900 0.2500 0.1500 0.1800 0.1700 0.2400
0.0800 0.1200 0.0900 0.1200 0.0900 0.1100 0.1900
0.1100 0.0900 0.1000 0.0700 0.0800 0.0900 0.0800
0.1100 0.0600 0.0700 0.0900 0.0700 0.0700 0.0600
0.0600 0.0500 0.0600 0.0900 0.0400 0.0600 0.0500
0.0600 0.0500 0.0500 0.0600 0.0700 0.0700 0.0300
0.0600 0.0100 0.0600 0.0400 0.1200 0.0700 0.0300
0.0400 0.0400 0.0800 0.0400 0.0300 0.0700 0.0300
Columns 99 through 105
0.3600 0.3700 0.3700 0.2900 0.2900 0.2800 0.3200
0.1300 0.1800 0.2100 0.1500 0.1600 0.1200 0.1500
0.0600 0.1200 0.1600 0.1000 0.1300 0.1200 0.0800
0.1100 0.0800 0.0700 0.1400 0.1500 0.0600 0.0500
0.1200 0.0700 0.0600 0.1300 0.1000 0.1500 0.0600
0.0900 0.0500 0.0500 0.0700 0.0800 0.0400 0.1900
0.0400 0.0500 0.0200 0.0700 0.0400 0.0700 0.1200
0.0600 0.0300 0.0300 0.0300 0.0300 0.0800 0.0100
0.0300 0.0500 0.0300 0.0200 0.0200 0.0800 0.0200
Columns 106 through 112
0.3400 0.2800 0.3100 0.2500 0.2400 0.3100 0.3400
0.1800 0.2100 0.2100 0.1400 0.1500 0.1400 0.1600
0.1200 0.1200 0.1000 0.1000 0.1100 0.1000 0.0900
0.0800 0.0900 0.0900 0.1000 0.0700 0.0300 0.0700
0.0500 0.0700 0.0500 0.1300 0.1000 0.1500 0.0600
0.0600 0.0700 0.0500 0.1100 0.0900 0.0700 0.1100
0.0700 0.0300 0.0800 0.0500 0.0800 0.0800 0.0800
0.0200 0.0600 0.0400 0.0800 0.0700 0.0600 0.0400
0.0800 0.0700 0.0700 0.0400 0.0900 0.0600 0.0500
Columns 113 through 119
0.4000 0.2700 0.3300 0.2900 0.2500 0.2400 0.3100
0.1800 0.1200 0.1500 0.1900 0.2600 0.1800 0.1300
0.1000 0.1600 0.0900 0.1000 0.1300 0.1800 0.1100
0.0600 0.1200 0.0700 0.0700 0.0800 0.1000 0.0600
0.0500 0.0900 0.0700 0.0700 0.0600 0.0900 0.0900
0.0500 0.1000 0.0700 0.0700 0.0500 0.0600 0.0600
0.0600 0.0300 0.0900 0.0900 0.0500 0.0600 0.0900
0.0500 0.0700 0.0700 0.0700 0.0900 0.0500 0.0700
0.0500 0.0400 0.0600 0.0500 0.0300 0.0400 0.0800
Columns 120 through 126
0.3300 0.2700 0.3400 0.3800 0.3600 0.3600 0.3500
0.1700 0.1300 0.1400 0.1000 0.1300 0.1400 0.2000
0.0900 0.0900 0.1000 0.0600 0.0500 0.1100 0.1500
0.0800 0.1500 0.1500 0.0300 0.1300 0.0600 0.0700
0.0600 0.0700 0.1000 0.0300 0.1500 0.1200 0.0600
0.0700 0.0200 0.0300 0.0200 0.0600 0.0800 0.0300
0.1100 0.0600 0.0200 0.0800 0.0400 0.0600 0.0200
0.0200 0.1100 0.0500 0.1800 0.0400 0.0300 0.0700
0.0700 0.1000 0.0700 0.1200 0.0400 0.0400 0.0500
Columns 127 through 133
0.3000 0.3000 0.3500 0.3300 0.3400 0.3300 0.2900
0.1400 0.1500 0.1700 0.2100 0.1800 0.2000 0.1200
0.1400 0.0500 0.1200 0.1000 0.1000 0.1100 0.1100
0.0600 0.2500 0.0900 0.0600 0.0700 0.0400 0.1600
0.1200 0.1200 0.0400 0.0800 0.0600 0.0300 0.1000
0.1000 0.0500 0.0500 0.0900 0.0400 0.0700 0.0700
0.0800 0.0100 0.0200 0.0400 0.0800 0.1000 0.0500
0.0100 0.0500 0.0500 0.0600 0.0800 0.0600 0.0300
0.0500 0.0200 0.1100 0.0300 0.0500 0.0600 0.0700
Columns 134 through 140
0.2800 0.2600 0.3000 0.4000 0.3600 0.2900 0.3600
0.2500 0.1500 0.1600 0.1400 0.1400 0.1500 0.1800
0.1300 0.0900 0.1000 0.1300 0.1000 0.1000 0.1300
0.0800 0.0800 0.0700 0.0400 0.0900 0.1300 0.0700
0.0900 0.1300 0.1000 0.0400 0.0700 0.1200 0.0500
0.0500 0.0800 0.0900 0.0700 0.0700 0.0900 0.0400
0.0500 0.0900 0.0700 0.0300 0.0600 0.0700 0.0600
0.0200 0.0500 0.0600 0.0900 0.0800 0.0300 0.0600
0.0500 0.0700 0.0500 0.0600 0.0300 0.0200 0.0500
Columns 141 through 147
0.3300 0.3300 0.2500 0.3000 0.3000 0.2500 0.2900
0.1700 0.1400 0.2600 0.1700 0.1600 0.1800 0.1600
0.0900 0.1000 0.1300 0.1100 0.1100 0.2800 0.1300
0.0700 0.0800 0.0700 0.0900 0.0800 0.1200 0.1500
0.0800 0.0700 0.0700 0.0800 0.0600 0.0400 0.0900
0.1200 0.0600 0.0300 0.0500 0.0800 0.0400 0.0900
0.0700 0.0800 0.0600 0.0400 0.0900 0.0400 0.0400
0.0400 0.1000 0.0700 0.0800 0.0600 0.0500 0.0300
0.0300 0.0400 0.0600 0.0800 0.0600 0 0.0200
Columns 148 through 154
0.4800 0.2800 0.3000 0.3700 0.3500 0.3800 0.3000
0.1100 0.1700 0.1700 0.1800 0.1400 0.1600 0.2000
0.0700 0.0900 0.1000 0.1200 0.1100 0.1100 0.1100
0.1000 0.0800 0.0800 0.0700 0.0700 0.0900 0.0500
0.1000 0.0600 0.0400 0.0500 0.0600 0.0700 0.0600
0.0300 0.1100 0.0800 0.0200 0.0400 0.0500 0.0900
0.0600 0.0800 0.0800 0.0400 0.1000 0.0400 0.0500
0.0300 0.0800 0.0700 0.0400 0.0800 0.0400 0.0700
0.0200 0.0500 0.0800 0.1100 0.0500 0.0600 0.0700
Columns 155 through 161
0.3400 0.3700 0.3700 0.2700 0.2400 0.2600 0.2800
0.1600 0.2000 0.1900 0.2000 0.1600 0.1700 0.1300
0.1300 0.1000 0.1000 0.1200 0.1000 0.0800 0.1100
0.0800 0.0900 0.0900 0.1000 0.1500 0.0800 0.1400
0.0700 0.0700 0.0600 0.0700 0.1000 0.1200 0.1000
0.0700 0.0500 0.0600 0.1000 0.0900 0.0800 0.0900
0.0500 0.0400 0.0400 0.0700 0.0700 0.0600 0.0500
0.0600 0.0300 0.0500 0.0400 0.0600 0.0900 0.0800
0.0400 0.0500 0.0400 0.0300 0.0300 0.0600 0.0200
Columns 162 through 168
0.3700 0.2900 0.3200 0.2900 0.3000 0.2700 0.2900
0.1400 0.0700 0.1500 0.2000 0.2000 0.1700 0.1200
0.1100 0.0800 0.1000 0.1300 0.1000 0.1100 0.1600
0.0800 0.1400 0.1300 0.0900 0.0600 0.0900 0.1400
0.0900 0.2000 0.0600 0.0500 0.0900 0.0700 0.0900
0.0800 0.0500 0.0600 0.0600 0.0700 0.0700 0.0500
0.0700 0.1000 0.0200 0.0700 0.0500 0.1100 0.0500
0.0500 0.0600 0.0800 0.0500 0.0700 0.0400 0.0300
0.0100 0.0100 0.0800 0.0600 0.0600 0.0700 0.0700
Columns 169 through 175
0.3400 0.3400 0.3500 0.3100 0.2900 0.3000 0.3000
0.1600 0.1600 0.1400 0.1700 0.1300 0.1800 0.2200
0.1100 0.1000 0.1300 0.1300 0.0900 0.1300 0.1800
0.0900 0.0800 0.0600 0.0600 0.1600 0.1000 0.1100
0.0600 0.0700 0.0600 0.0700 0.0700 0.0500 0.0500
0.0200 0.0500 0.0700 0.0500 0.1100 0.0400 0.0700
0.0800 0.0500 0.0700 0.1000 0.0700 0.0700 0.0200
0.0900 0.0700 0.0900 0.0600 0.0600 0.0900 0.0300
0.0500 0.0800 0.0300 0.0500 0.0200 0.0400 0.0200
Columns 176 through 182
0.4000 0.3600 0.2500 0.2600 0.3100 0.3800 0.3900
0.1800 0.2000 0.1600 0.2300 0.1700 0.1600 0.1900
0.1000 0.0800 0.1300 0.0900 0.1000 0.1100 0.1100
0.0800 0.0600 0.0700 0.1000 0.1200 0.1000 0.0700
0.0900 0.0600 0.1100 0.0600 0.1200 0.0500 0.0600
0.0600 0.0900 0.1000 0.0500 0.0700 0.0600 0.0500
0.0500 0.0800 0.1000 0.0700 0.0500 0.0500 0.0400
0.0300 0.0500 0.0600 0.1100 0.0300 0.0300 0.0700
0.0100 0.0200 0.0200 0.0300 0.0300 0.0600 0.0200
Columns 183 through 189
0.3300 0.3200 0.3500 0.3600 0.5000 0.3400 0.2900
0.2200 0.1700 0.1700 0.1900 0.1400 0.1300 0.1800
0.1100 0.1000 0.0900 0.1200 0.1200 0.0900 0.1000
0.0800 0.0700 0.1100 0.0700 0.1000 0.1300 0.1000
0.0500 0.0900 0.0600 0.0500 0.0300 0.1100 0.0700
0.0600 0.0700 0.0800 0.0500 0.0300 0.0700 0.0600
0.0300 0.1000 0.0500 0.0700 0.0200 0.0500 0.0700
0.0600 0.0400 0.0400 0.0500 0 0.0300 0.0300
0.0600 0.0400 0.0500 0.0400 0.0600 0.0500 0.1000
Columns 190 through 196
0.3000 0.2900 0.4100 0.2800 0.2800 0.2900 0.3200
0.1700 0.1600 0.1400 0.2200 0.1500 0.1300 0.1400
0.1000 0.1100 0.1200 0.1400 0.0800 0.1000 0.0800
0.0800 0.0700 0.0700 0.0900 0.0900 0.0800 0.1200
0.0600 0.0700 0.0400 0.1000 0.1100 0.1300 0.0200
0.0700 0.1200 0.0800 0.0200 0.1000 0.0900 0.0800
0.0600 0.0500 0.0300 0.0600 0.0700 0.0900 0.0600
0.1100 0.1100 0.0400 0.0200 0.0800 0.0500 0.0800
0.0500 0.0200 0.0700 0.0700 0.0400 0.0400 0.1000
Columns 197 through 200
0.2900 0.3200 0.3600 0.3300
0.1400 0.3200 0.0700 0.1400
0.0900 0.1200 0.1500 0.0800
0.1400 0.0600 0.1200 0.1200
0.0900 0.0600 0.1000 0.0200
0.0700 0.0400 0.0100 0.0900
0.0500 0.0100 0.0400 0.0600
0.0700 0.0300 0.0600 0.0800
0.0600 0.0400 0.0900 0.0800
with this [y]
0.12
0.15
0.1
0.02
0.0001
0.1
0.78
0.9
0.5
Any ideia?
PF
  5 Commenti
PEDRO ALEXANDRE Fernandes
PEDRO ALEXANDRE Fernandes il 28 Mar 2022
Modificato: PEDRO ALEXANDRE Fernandes il 28 Mar 2022
No..
I want plot in several figures. 20 for each one, or else, it can grow as I add more lines
PEDRO ALEXANDRE Fernandes
PEDRO ALEXANDRE Fernandes il 28 Mar 2022
Hello again
I tried it. But I wanted 13 figures to appear that were 15 in 15 variables. My problem is in the second cycle
if nlinhas >101 & nlinhas <= 999
box2 = floor(nlinhas/15)
for k = 1:box2
for cl = 1:1:15
figure(k)
subplot(1,1,1);
n = freq_Imagem(1:9,cl);
b = cenf(1:9,1:1);
i =cl;
newYlabels = ["Figura"+i,"Cenf"];
s = stackedplot([n,b],"DisplayLabels",newYlabels);
s.LineWidth = 1.5;
s.XLabel = "Digitos";
end
end

Accedi per commentare.

Risposta accettata

Mathieu NOE
Mathieu NOE il 28 Mar 2022
hello again
a basic for loop
demo on dummy data
samples = 100;
data = rand(200,samples);
[m,n] = size(data);
traces_per_fig = 20;
mm = floor(m/traces_per_fig);
for ci = 1:mm
figure(ci);
ind1 = 1+(ci-1)*traces_per_fig;
ind2 = ind1 + traces_per_fig-1;
data_tmp = data(ind1:ind2,:);
s = stackedplot(data_tmp);
end
  5 Commenti
Mathieu NOE
Mathieu NOE il 29 Mar 2022
My pleasure !
have a good day

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by