Effacer les filtres
Effacer les filtres

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

4 vues (au cours des 30 derniers jours)
Nikola
Nikola le 23 Juil 2014
Commenté : Star Strider le 23 Juil 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)?

Réponses (1)

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

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by