From: Jonas Camillus Jeppesen on
Hi everyone

Every time I try to use the randi() function (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/randi.html) MATLAB just respond:

>> randi(10,100,1)
??? Undefined function or method 'randi' for input arguments of type 'double'.

and Help found in my MATLAB can not find any function called randi.

I use MATLAB version 7.6.0.324 (R2008a) and I'm fairly sure I've used this function on this version of MATLAB before.

Can anyone enlighten me?

Best regards
Jonas C. Jeppesen, Denmark
From: Jonas Camillus Jeppesen on
If you have no other suggestions maybe you could just post your MATLAB version and whether or not you have access to the randi() function?

That would also be a great help.

Thank you.
From: Husam Aldahiyat on
"Jonas Camillus Jeppesen" <wuhtzu(a)hotmail.com> wrote in message <hnne76$ovq$1(a)fred.mathworks.com>...
> Hi everyone
>
> Every time I try to use the randi() function (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/randi.html) MATLAB just respond:
>
> >> randi(10,100,1)
> ??? Undefined function or method 'randi' for input arguments of type 'double'.
>
> and Help found in my MATLAB can not find any function called randi.
>
> I use MATLAB version 7.6.0.324 (R2008a) and I'm fairly sure I've used this function on this version of MATLAB before.
>
> Can anyone enlighten me?
>
> Best regards
> Jonas C. Jeppesen, Denmark

Student version doesn't have randi().
From: Jonas Camillus Jeppesen on
"Husam Aldahiyat" <numandina(a)gmail.com> wrote in message <hnnkib$7v8$1(a)fred.mathworks.com>...
> "Jonas Camillus Jeppesen" <wuhtzu(a)hotmail.com> wrote in message <hnne76$ovq$1(a)fred.mathworks.com>...
> > Hi everyone
> >
> > Every time I try to use the randi() function (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/randi.html) MATLAB just respond:
> >
> > >> randi(10,100,1)
> > ??? Undefined function or method 'randi' for input arguments of type 'double'.
> >
> > and Help found in my MATLAB can not find any function called randi.
> >
> > I use MATLAB version 7.6.0.324 (R2008a) and I'm fairly sure I've used this function on this version of MATLAB before.
> >
> > Can anyone enlighten me?
> >
> > Best regards
> > Jonas C. Jeppesen, Denmark
>
> Student version doesn't have randi().

And what makes my version a student version? Are all the RXXXXy versions student versions or? My program is made available to me through my university...
From: David Young on
How about working round it with

ceil(imax*rand(m,n))