Undefined function or method 'gaussian1D' for input arguments of type 'double'.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Zishan
am 21 Jan. 2015
Kommentiert: Image Analyst
am 21 Jan. 2015
I get this error when i simulate the code "y1 = gaussian1D(x, mu(1), sigma(1)); "Undefined function or method 'gaussian1D' for input arguments of type 'double'. please tell me how can i get its toolbox.
0 Kommentare
Akzeptierte Antwort
Ced
am 21 Jan. 2015
The function gaussian1D does not exist, therefore you cannot call it. If you are looking to get a sample from the 1D Gaussian distribution, use "randn" instead. Note that this is the N(0,1) distribution, so you need to fix it manually, e.g.
sample = mu + sigma*randn(1,1);
where mu is the mean and sigma the standard deviation.
3 Kommentare
Image Analyst
am 21 Jan. 2015
It is a function that ChrisMcCormick wrote but was not supplied with the rest of his code, so evidently you do not have it. Contact ChrisMcCormick to get it if you don't want to use randn.
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!