Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function [sample] = generateNormalValrs(n,mu,sigma)
- switch nargin
- case 1 %good input
- mu=1.1;
- sigma=1.1;
- sample=sigma.*randn(1,n)+mu;
- case 2 %good input
- sigma=1.1;
- sample=sigma.*randn(1,n)+mu;
- case 3
- sample=sigma.*randn(1,n)+mu;
- otherwise
- error('enter a either 1,2 or 3 arguments');
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement