Filter löschen
Filter löschen

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

4 Ansichten (letzte 30 Tage)
Nikola
Nikola am 23 Jul. 2014
Kommentiert: Star Strider am 23 Jul. 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)?

Antworten (1)

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

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by