jtiernan2008
asked on
Please check if my Matlab code is correct
Please find attached tutorial
On page 9 no.3
I try the following code but I do not think that it is correct;
Can someone please check it for me
On page 9 no.3
I try the following code but I do not think that it is correct;
Can someone please check it for me
I = normrnd(5,1);
hist(I)
ASKER
thanks a million Lunchy
@masheik hist(I,x) brings up the same results, I changed hist(I,x) to hist(x,I)
Is this correct?
@masheik hist(I,x) brings up the same results, I changed hist(I,x) to hist(x,I)
Is this correct?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you actually get the correct answer? Because you problem is that you get only one number from I=normrnd(5,1);
You need to specify the size of result.
I=normrnd(5,1,100,1);
hist(I)
It's not necessary to specify x for hist, only if you need it.
You need to specify the size of result.
I=normrnd(5,1,100,1);
hist(I)
It's not necessary to specify x for hist, only if you need it.
x = 0:1:10;
I= normrnd(5,1);
hist(I,x)