Azzera filtri
Azzera filtri

gauss(x,mu,s) but my x variable is double...

4 visualizzazioni (ultimi 30 giorni)
Nikola
Nikola il 23 Lug 2014
Commentato: Star Strider il 23 Lug 2014
x =
Columns 1 through 21
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
Columns 22 through 42
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
Columns 43 through 63
5 5 5 5 5 5 5 5 5 5 5 5 5 5 4 4 4 4 4 4 4
Columns 64 through 84
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
Columns 85 through 105
4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3
Columns 106 through 126
3 3 3 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
Columns 127 through 147
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
Columns 148 through 168
5 5 5 5 5 5 5 5 5 4 4 4 4 4 4 4 4 4 4 4 4
Columns 169 through 189
4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 5 5 5
Columns 190 through 210
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
Columns 211 through 231
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
Columns 232 through 252
5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
Columns 253 through 273
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
Columns 274 through 275
4 4
mu=mean(x)
mu =
4.563636363636364
>> s=std(x)
s =
0.596939773815894
>> gauss=gauss(x,mu,s) ??? Undefined function or method 'gauss' for input arguments of type 'double'. I WANT TO PLOT GAUSSIAN DISTRIBUTION OF THESE NUMBERS BUT I CANT MAKE GAUSS FUNCTION.... plot(x,gauss)?

Risposte (1)

dpb
dpb il 23 Lug 2014
>> which gauss
'gauss' not found.
>>
gauss isn't in the Matlab base product nor Stat Toolbox. If have the latter try
doc normplot

Categorie

Scopri di più su Numerical Integration and Differential Equations in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by