From: Steve Eddins on 16 Mar 2010 07:07 Jonas Camillus Jeppesen wrote: > 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 randi is not in R2008a. It was added to MATLAB in R2008b. --- Steve Eddins http://blogs.mathworks.com/steve/
From: Steven Lord on 16 Mar 2010 10:27 "Jonas Camillus Jeppesen" <wuhtzu(a)hotmail.com> wrote in message news: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: Note that the online documentation is the documentation for the most recent release of MATLAB (right now, that would be release R2010a) and so may describe features that are not present in older releases. >>> 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? As Steve Eddins said, you're one release too early. Take a look at this section of the release R2008b Release Notes: http://www.mathworks.com/access/helpdesk/help/techdoc/rn/brqyzsl-1.html Perhaps you wrote your own version of RANDI using RAND, CEIL, and appropriate scaling? -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
From: Steven Lord on 16 Mar 2010 10:29 "Husam Aldahiyat" <numandina(a)gmail.com> wrote in message news: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(). The problem is not Student Version versus non-Student Version -- the problem is that RANDI was released in release R2008b. There are a few differences between Student Version and the professional version: http://www.mathworks.com/academia/student_version/details.html but the presence or absence of the RANDI function is not one of them. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
From: Peter Perkins on 16 Mar 2010 10:54 On 3/16/2010 10:27 AM, Steven Lord wrote: > Perhaps you wrote your own version of RANDI using RAND, CEIL, and > appropriate scaling? In fact, MATLAB versions prior to R2008b has this as an example in the help for RAND. It's a one liner.
From: David Young on 16 Mar 2010 11:09 Peter Perkins <Peter.Perkins(a)MathRemoveThisWorks.com> wrote in message <hno643$9b7$1(a)fred.mathworks.com>... > On 3/16/2010 10:27 AM, Steven Lord wrote: > > Perhaps you wrote your own version of RANDI using RAND, CEIL, and > > appropriate scaling? > > In fact, MATLAB versions prior to R2008b has this as an example in the help for RAND. It's a one liner. Yes, a bit like the one I put in this thread earlier!
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: Alzare i tergicristalli MONDEO?! Next: Find biggest index j s.t z(i)<=C |