Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Quantile function in Simulink
Date: Wed, 10 Sep 2008 22:56:02 +0000 (UTC)
Organization: Raytheon Systems Co
Lines: 9
Message-ID: <ga9ja2$t18$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1221087362 29736 172.30.248.37 (10 Sep 2008 22:56:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 10 Sep 2008 22:56:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 433171
Xref: news.mathworks.com comp.soft-sys.matlab:489676



Hi,

I've got a Simulink model of a video processor which I've based on an existing model developed in MATLAB. The Simulink model makes extensive use of Embedded MATLAB blocks (it seemed the quickest way to get my MATLAB code into Simulink). Some of the blocks are taking a very long time to execute, and consequently the Simulink version runs more than an order of magnitude slower than the same code in MATLAB. I believe part of the problem is my heavy use of EML, and in particular the functions I have that call the MATLAB quantile function.

I&#8217;ve used the Simulink profiler to identify which functions are taking the most time, and I&#8217;m looking at replacing them with subsystems composed of native Simulink blocks. One problem I&#8217;m having is that I haven&#8217;t found a Simulink equivalent to the MATLAB quantile function. Do any of you know of any equivalent block in Simulink that can take a vector and a percentile and output the corresponding quantile?

Steve