http://www.mathworks.com/matlabcentral/newsreader/view_thread/328430
MATLAB Central Newsreader  ksdensity function  error Undefined variable "internal" or class "internal.stats.parseArgs"
Feed for thread: ksdensity function  error Undefined variable "internal" or class "internal.stats.parseArgs"
enus
©19942014 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Thu, 18 Apr 2013 16:36:10 +0000
ksdensity function  error Undefined variable "internal" or class "internal.stats.parseArgs"
http://www.mathworks.com/matlabcentral/newsreader/view_thread/328430#902702
Fels
Hello all,<br>
<br>
I am currently facing some issues when I upgraded from Matlab7 to Matlab12 on my Win7 laptop. Problem#1: I seem to be missing the ksdensity function (part of stats toolbox). Ignoring problem#1, to quickly solve it, I copied the ksdensity.m file from my LINUX version and added it to my Win7.<br>
<br>
Problem#2: When running a code that used to work on Matlab7, Matlab12 gave me an error for the ksdensity function (see below)<br>
<br>
Undefined variable "internal" or class "internal.stats.parseArgs".<br>
<br>
Error in ksdensity>parse_args (line 186)<br>
[u,m,kernelname,support,weight,cens,cutoff,ftype] = ...<br>
<br>
Error in ksdensity (line 114)<br>
[axarg,yData,n,ymin,ymax,xispecified,xi,u,m,kernelname,...<br>
<br>
<br>
I'm afraid I have ran out of clue on what is happening. Is it due to the the m file being different in different platforms ie I cannot simply copy the linux version to windows. <br>
<br>
I suspect my Problem#1 is due to my network installation ie missing toolboxes or Matlab12 has oddly hidden toolboxes  so no quick fix there just yet. But assuming functions are transferable, what could that error above mean?<br>
<br>
Appreciate any advice.<br>
<br>
Many thanks,<br>
Felicia

Thu, 18 Apr 2013 18:41:36 +0000
Re: ksdensity function  error Undefined variable "internal" or class "internal.stats.parseArgs"
http://www.mathworks.com/matlabcentral/newsreader/view_thread/328430#902716
Tom Lane
> I am currently facing some issues when I upgraded from Matlab7 to Matlab12 <br>
> on my Win7 laptop. Problem#1: I seem to be missing the ksdensity function <br>
> (part of stats toolbox). Ignoring problem#1, to quickly solve it, I copied <br>
> the ksdensity.m file from my LINUX version and added it to my Win7.<br>
<br>
Best not to ignore problem #1. I'm not sure what happened but perhaps you <br>
can find this file. Maybe your path is not correct. I'd expect you'd find it <br>
in either of these two places:<br>
<br>
>> cd(matlabroot)<br>
>> ls toolbox/stats/ksdensity.m % it was here in some <br>
>> releases<br>
'toolbox\stats\ksdensity.m' not found.<br>
>> ls toolbox/stats/stats/ksdensity.m % it moved here at some <br>
>> point<br>
ksdensity.m<br>
<br>
<br>
> Problem#2: When running a code that used to work on Matlab7, Matlab12 gave <br>
> me an error for the ksdensity function (see below)<br>
> <br>
> Undefined variable "internal" or class "internal.stats.parseArgs".<br>
<br>
The ksdensity function uses some internal utilities. If you copy it to an <br>
older release that doesn't have those utilities, you could encounter a <br>
problem. Here's what is missing for you:<br>
<br>
>> which internal.stats.parseArgs<br>
... \toolbox\stats\stats\+internal\+stats\parseArgs.m % static method or <br>
package function<br>
<br>
One thing to try is "rehash toolbox" to make sure MATLAB notices what files <br>
you have added to or removed from toolbox directories. But I also am <br>
confused  MATLAB12 sounds like a very old thing, unless you mean R2012a or <br>
R2012b.<br>
<br>
 Tom

Mon, 22 Apr 2013 12:50:09 +0000
Re: ksdensity function  error Undefined variable "internal" or class "internal.stats.parseArgs"
http://www.mathworks.com/matlabcentral/newsreader/view_thread/328430#902915
Fels
Hi Tom,<br>
<br>
Appreciate the advice!! I think I am missing the entire Stats toolbox. You are right  I cannot ignore problem#1. Also because I am missing stats toolbox, I cannot which internal.stats.parseArgs. <br>
<br>
My Matlab is R2012b. Apologies for the abbreviation. <br>
<br>
Shall hunt down the stats toolbox!<br>
<br>
F.<br>
<br>
"Fels " <fcia_t@yahoo.com> wrote in message <kkp7dq$srp$1@newscl01ah.mathworks.com>...<br>
> Hello all,<br>
> <br>
> I am currently facing some issues when I upgraded from Matlab7 to Matlab12 on my Win7 laptop. Problem#1: I seem to be missing the ksdensity function (part of stats toolbox). Ignoring problem#1, to quickly solve it, I copied the ksdensity.m file from my LINUX version and added it to my Win7.<br>
> <br>
> Problem#2: When running a code that used to work on Matlab7, Matlab12 gave me an error for the ksdensity function (see below)<br>
> <br>
> Undefined variable "internal" or class "internal.stats.parseArgs".<br>
> <br>
> Error in ksdensity>parse_args (line 186)<br>
> [u,m,kernelname,support,weight,cens,cutoff,ftype] = ...<br>
> <br>
> Error in ksdensity (line 114)<br>
> [axarg,yData,n,ymin,ymax,xispecified,xi,u,m,kernelname,...<br>
> <br>
> <br>
> I'm afraid I have ran out of clue on what is happening. Is it due to the the m file being different in different platforms ie I cannot simply copy the linux version to windows. <br>
> <br>
> I suspect my Problem#1 is due to my network installation ie missing toolboxes or Matlab12 has oddly hidden toolboxes  so no quick fix there just yet. But assuming functions are transferable, what could that error above mean?<br>
> <br>
> Appreciate any advice.<br>
> <br>
> Many thanks,<br>
> Felicia

Wed, 24 Apr 2013 04:57:08 +0000
Re: ksdensity function  error Undefined variable "internal" or class "internal.stats.parseArgs"
http://www.mathworks.com/matlabcentral/newsreader/view_thread/328430#903059
Marc
"Fels " <fcia_t@yahoo.com> wrote in message <kl3bm1$bjq$1@newscl01ah.mathworks.com>...<br>
> Hi Tom,<br>
> <br>
> Appreciate the advice!! I think I am missing the entire Stats toolbox. You are right  I cannot ignore problem#1. Also because I am missing stats toolbox, I cannot which internal.stats.parseArgs. <br>
> <br>
> My Matlab is R2012b. Apologies for the abbreviation. <br>
> <br>
> Shall hunt down the stats toolbox!<br>
> <br>
> F.<br>
> <br>
> "Fels " <fcia_t@yahoo.com> wrote in message <kkp7dq$srp$1@newscl01ah.mathworks.com>...<br>
> > Hello all,<br>
> > <br>
> > I am currently facing some issues when I upgraded from Matlab7 to Matlab12 on my Win7 laptop. Problem#1: I seem to be missing the ksdensity function (part of stats toolbox). Ignoring problem#1, to quickly solve it, I copied the ksdensity.m file from my LINUX version and added it to my Win7.<br>
> > <br>
> > Problem#2: When running a code that used to work on Matlab7, Matlab12 gave me an error for the ksdensity function (see below)<br>
> > <br>
> > Undefined variable "internal" or class "internal.stats.parseArgs".<br>
> > <br>
> > Error in ksdensity>parse_args (line 186)<br>
> > [u,m,kernelname,support,weight,cens,cutoff,ftype] = ...<br>
> > <br>
> > Error in ksdensity (line 114)<br>
> > [axarg,yData,n,ymin,ymax,xispecified,xi,u,m,kernelname,...<br>
> > <br>
> > <br>
> > I'm afraid I have ran out of clue on what is happening. Is it due to the the m file being different in different platforms ie I cannot simply copy the linux version to windows. <br>
> > <br>
> > I suspect my Problem#1 is due to my network installation ie missing toolboxes or Matlab12 has oddly hidden toolboxes  so no quick fix there just yet. But assuming functions are transferable, what could that error above mean?<br>
> > <br>
> > Appreciate any advice.<br>
> > <br>
> > Many thanks,<br>
> > Felicia<br>
<br>
When upgrading to a newer version of Matlab, you also have to upgrade your toolboxes. So if you were using the Stats toolbox in some earlier version, this will not work in a newer version. Unless your hacking capabilities are off the chart.....<br>
<br>
So, if you got yourself hooked on the stats toolbox with, say, a students edition. Trying to move that toolbox into your new version's folder or path will not work.<br>
<br>
$800$1000 will do the trick.