Path: news.mathworks.com!not-for-mail
From: "Fels " <fcia_t@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: ksdensity function - error -Undefined variable "internal" or class "internal.stats.parseArgs"
Date: Thu, 18 Apr 2013 16:36:10 +0000 (UTC)
Organization: BP
Lines: 23
Message-ID: <kkp7dq$srp$1@newscl01ah.mathworks.com>
Reply-To: "Fels " <fcia_t@yahoo.com>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1366302970 29561 172.30.248.35 (18 Apr 2013 16:36:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Apr 2013 16:36:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 4245626
Xref: news.mathworks.com comp.soft-sys.matlab:793841

Hello all,

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.

Problem#2: When running a code that used to work on Matlab7, Matlab12 gave me an error for the ksdensity function (see below)
------------------------------------------------------------------------------------------
Undefined variable "internal" or class "internal.stats.parseArgs".

Error in ksdensity>parse_args (line 186)
[u,m,kernelname,support,weight,cens,cutoff,ftype] = ...

Error in ksdensity (line 114)
[axarg,yData,n,ymin,ymax,xispecified,xi,u,m,kernelname,...
----------------------------------------------------------------------------------------

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. 

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?

Appreciate any advice.

Many thanks,
Felicia