<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/most_recent_feed</link>
    <title>MATLAB Central Newsreader Recent Posts</title>
    <description>Most Recent Posts</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/mathworks/zAHF" /><feedburner:info uri="mathworks/zahf" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <pubDate>Mon, 04 Jun 2012 09:40:01 -0400</pubDate>
      <title>Re: optimization problem: get a feasible point for running an optimization</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/E9SJ8VKvJLU/320630</link>
      <author>Torsten</author>
      <description>&amp;gt;&lt;br&gt;
&amp;gt; I used many times fmincon with a not feasible starting point and I got an&lt;br&gt;
&amp;gt; unfeasible solution. I read on a matlab documentation, fmincon needs a feasible starting point, therefore I was wondering it was possible to find one througn the optimization toolbox.&lt;br&gt;
&lt;br&gt;
Depends on the kind of constraints that you have.&lt;br&gt;
E.g. if they are all linear, you could use LINPROG to find a feasible&lt;br&gt;
starting point.&lt;br&gt;
&lt;br&gt;
Best wishes&lt;br&gt;
Torsten.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/E9SJ8VKvJLU" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320630#878893</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 09:36:07 -0400</pubDate>
      <title>How to retain the values in "inputdlg"?</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/HtCe2LEQxgc/320701</link>
      <author>Prashant Sandhi</author>
      <description>Dear All,&lt;br&gt;
&lt;br&gt;
I have a code where I can enter the values and after pressing 'OK' then all the values are loaded into 'workspace'. Imagine if I want to change the values of 'N' &amp; 'CWL' later, then in my below code I have to enter all the values again once I press 'OK'. &lt;br&gt;
&lt;br&gt;
*******************************************************************&lt;br&gt;
clear all;clc;&lt;br&gt;
Data=inputdlg( {'Enter Sampling Frequency in Hz:','Enter Cutoff Frequency in Hz:',...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Enter Order of the Filter:','Enter Input Word Length 8bit, 12bit,..32bit..:',...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Enter Coefficient Word Length:'});&lt;br&gt;
&lt;br&gt;
% All frequency values are in Hz.&lt;br&gt;
Fs = str2num(Data{1});                  % Sampling Frequency&lt;br&gt;
Fc = str2num(Data{2});                  % Cutoff Frequency&lt;br&gt;
N  = str2num(Data{3});                   % Order of the Filter&lt;br&gt;
n  = str2num(Data{4});                   % Enter Input Word Length&lt;br&gt;
CWL = str2num(Data{5});               % Enter Coefficient Word Length&lt;br&gt;
&lt;br&gt;
********************************************************************&lt;br&gt;
To avoid entering all the values each time in the input-dialogue-box, I would like to perform two things:&lt;br&gt;
1. Let the 'inputdlg' box be open even after pressing 'OK'&lt;br&gt;
2. Retain all the previous values I have entered in 'inputdlf' box.&lt;br&gt;
&lt;br&gt;
This will avoid entering the values for all Fs, Fc, N, n &amp; CWL. &lt;br&gt;
&lt;br&gt;
Any suggestions will be appreciated.&lt;br&gt;
&lt;br&gt;
Thanking you in advance!&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/HtCe2LEQxgc" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320701#878892</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 09:28:09 -0400</pubDate>
      <title>Re: optimization problem: get a feasible point for running an optimization</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/TvXWzFCtQzw/320630</link>
      <author>pietro </author>
      <description>"Seth Deland" &amp;lt;sdeland@mathworks.com&amp;gt; wrote in message &amp;lt;jqaa7l$m85$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; To add to what Sargondjani said, if the solver is having trouble finding any &lt;br&gt;
&amp;gt; feasible point, there is this section of the documentation which provides &lt;br&gt;
&amp;gt; some guidance: &lt;br&gt;
&amp;gt; &lt;a href="http://www.mathworks.com/help/toolbox/optim/ug/br44iv5-1.html#br44i73"&gt;http://www.mathworks.com/help/toolbox/optim/ug/br44iv5-1.html#br44i73&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; "Sargondjani " &amp;lt;sponsstimo@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:jqa682$76k$1@newscl01ah.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; i dont think it needs a feasible point to start... i mean, during &lt;br&gt;
&amp;gt; &amp;gt; iterations it can also violate constraints, so i dont see why your initial &lt;br&gt;
&amp;gt; &amp;gt; guess should be feasible... &lt;br&gt;
&lt;br&gt;
Thanks for yout reply, &lt;br&gt;
&lt;br&gt;
I used many times fmincon with a not feasible starting point and I got an &lt;br&gt;
unfeasible solution. I read on a matlab documentation, fmincon needs a feasible starting point, therefore I was wondering it was possible to find one througn the optimization toolbox.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/TvXWzFCtQzw" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320630#878891</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 09:19:09 -0400</pubDate>
      <title>Re: Capturing Image from built in webcam</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/_MtY2wBMlS4/320687</link>
      <author>Aqeel Anwar</author>
      <description>"Image Analyst" wrote in message &amp;lt;jqgpoq$85t$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Aqeel Anwar:&lt;br&gt;
&amp;gt; You'll probably have to find some API or SDK code for your web cam.  Then use loadlibrary() and make calls directly to that.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Actually I am a beginner to MATLAB, so can you please help me finding one?&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/_MtY2wBMlS4" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320687#878890</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 09:12:06 -0400</pubDate>
      <title>Re: 4D matrix manipulation</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/XP7LJnyxQd8/320700</link>
      <author>Matt J </author>
      <description>"Matt J" wrote in message &amp;lt;jqht3f$n50$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Niels " &amp;lt;nrvdwerf@gmail.com&amp;gt; wrote in message &amp;lt;jqhsq3$m3c$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Can you please help me find a short algorithm to fill the TAC matrix?&lt;br&gt;
&amp;gt; ==========&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; TAC=reshape(X,[],63).';&lt;br&gt;
&lt;br&gt;
Make that&lt;br&gt;
&lt;br&gt;
TAC=reshape(X,[],19).';&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/XP7LJnyxQd8" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320700#878889</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 08:54:08 -0400</pubDate>
      <title>Re: 4D matrix manipulation</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/hVir-Ef60Nk/320700</link>
      <author>Matt J </author>
      <description>"Niels " &amp;lt;nrvdwerf@gmail.com&amp;gt; wrote in message &amp;lt;jqhsq3$m3c$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Can you please help me find a short algorithm to fill the TAC matrix?&lt;br&gt;
==========&lt;br&gt;
&lt;br&gt;
TAC=reshape(X,[],63).';&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/hVir-Ef60Nk" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320700#878888</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 08:50:07 -0400</pubDate>
      <title>Re: fmincon: convergence and choice of algorithm</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/2nDIAoOGc40/320699</link>
      <author>Matt J </author>
      <description>"Olivier" wrote in message &amp;lt;jqhpqe$auq$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; tempCov is simply a (annualized) covariance Matrix (70x70). I can post this covariance matrix if this is helpful. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; My observation is the following:&lt;br&gt;
&amp;gt; 1) the convergence is very slow. I need to increase the exit options to  optimset(... 'TolX',1e-8,'TolFun',1e-8,'MaxIter',100000, 'MaxFunEvals', 100000) to get a result which is "close enough" to the close formula.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I think this is a "relevant" observation. Many papers in finance solve this kind of problems (convex optimization problem in 70 dimensions). They generally solve the problem with sqp but there is no indication about the "precision". &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have to correct my other observation:&lt;br&gt;
&amp;gt; 1) the sqp and interior-point algorithms have very similar solutions but not exactly the same solution&lt;br&gt;
=====================&lt;br&gt;
&lt;br&gt;
But how fast is QUADPROG? I haven't read papers in the field of finance, but I assume that this is what they would normally be using, since it's the best suited for the quadratic structure of your problem. &lt;br&gt;
&lt;br&gt;
And how well conditioned is your covariance matrix, i.e. what is cond(tempCov)?&lt;br&gt;
A poorly conditioned covariance matrix could certainly influence speed. Although fmincon tries to estimate the covariance and thereby compensate for ill-conditioning, it would be harder for it to do so when you haven't provided it the gradient and Hessian explicitly, using the GradObj  and Hessian options. &lt;br&gt;
&lt;br&gt;
Finally, certain fmincon algorithms approximate the Hessian (the covariance in your case) with different levels of precision. The sqp algorithm, which  you are using for example, doesn't give you an option to supply the Hessian explicitly, but rather estimates it on the fly.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/2nDIAoOGc40" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320699#878887</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 08:49:07 -0400</pubDate>
      <title>4D matrix manipulation</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/esd4AKikkQs/320700</link>
      <author>Niels </author>
      <description>Hello!&lt;br&gt;
&lt;br&gt;
For my bachelor thesis I have to manipulate a 4D matrix (X). The first three dimensions are the x,y,z directions and the fourth dimension is time.&lt;br&gt;
&lt;br&gt;
What I need from this data is the time dependency at every point, which I like to store in a 2D matrix called TAC (time activity).&lt;br&gt;
&lt;br&gt;
I already now what to do for the first coordinate (1,1,1,), namely:&lt;br&gt;
&lt;br&gt;
TAC(:,1)  = X(1,1,1,:)&lt;br&gt;
&lt;br&gt;
The lengths of the different dimensions are:&lt;br&gt;
length_x = 128&lt;br&gt;
length_y = 128&lt;br&gt;
length_z = 63&lt;br&gt;
length_x = 19&lt;br&gt;
&lt;br&gt;
So, the TAC matrix will be a 19 x (128*128*63) = 19 x 1032192 matrix&lt;br&gt;
And it's first row will be the time activity of coordinate (1,1,1). The second row should contain the time activity of coordinate (2,1,1) etc.&lt;br&gt;
&lt;br&gt;
Can you please help me find a short algorithm to fill the TAC matrix?&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/esd4AKikkQs" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320700#878886</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 08:46:06 -0400</pubDate>
      <title>Re: Accessing Non-Excel Libre Spreadsheet from MATLAB</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/PHrz_diHh-4/318195</link>
      <author>mklcst mklcst</author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;14349772.98.1332892357752.JavaMail.geo-discussion-forums@ynaz5&amp;gt;...&lt;br&gt;
&amp;gt; On Wednesday, March 28, 2012 11:53:14 AM UTC+13, Eric Diaz wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; When running XLSREAD on a machine that is not a Windows machine with &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Microsoft Excel installed, XLSREAD will operate in "basic mode":&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;a href="http://www.mathworks.com/help/techdoc/ref/xlsread.html"&gt;http://www.mathworks.com/help/techdoc/ref/xlsread.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; "[num,txt,raw] = xlsread(filename,sheet,range,'basic') reads data from the &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; spreadsheet in basic mode, the default on systems without Excel for &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Windows."&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Basic mode has some limitations, as described in the Input Arguments section &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; of that documentation, and it appears you were trying to do something that &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; exceeded the capabilities of basic mode.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Right...I remember it saying something about "basic mode" too, but it still gave the errors.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;  I don't really understand this COM server stuff at all? Is there a COM &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; server method for accessing open-source office spreadsheets?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; If the program offers a COM interface, yes, but a quick glance at the &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; LibreOffice website didn't indicate that it had such an interface.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; OK, thanks. I guess that is about as close to an answer as I can get, since you work at TMW.  Do you know whether there is any way to resolve this problem other than bowing down to the almighty Microsoft Office? I would definitely like to see support for an open office suite, like Libre.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A work around would be to save the spreadsheet as a .csv file, then getting the data into Matlab is a breeze (and faster than xlsread as well).&lt;br&gt;
&lt;br&gt;
I think it's time for Matlab to fully support libreoffice (or OpenOffice or whatelse). &lt;br&gt;
A part for the office license, it would amazing also for the unix platform linux and Mac.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/PHrz_diHh-4" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/318195#878885</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 08:20:27 -0400</pubDate>
      <title>Re: fmincon: convergence and choice of algorithm</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/kuAO6kXP_4g/320699</link>
      <author>Torsten</author>
      <description>Forget my reply - it's nonsense.&lt;br&gt;
&lt;br&gt;
Best wishes&lt;br&gt;
Torsten.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/kuAO6kXP_4g" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320699#878883</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 08:18:34 -0400</pubDate>
      <title>Re: fmincon: convergence and choice of algorithm</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/UqG6aORklMk/320699</link>
      <author>Torsten</author>
      <description>Does fmincon accept your setting although Aeq is a vector instead of a&lt;br&gt;
matrix and beq is a scalar instead of a vector ?&lt;br&gt;
&lt;br&gt;
Best wishes&lt;br&gt;
Torsten.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/UqG6aORklMk" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320699#878884</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 07:58:06 -0400</pubDate>
      <title>fmincon: convergence and choice of algorithm</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/QZkb84WMxiI/320699</link>
      <author>Olivier </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
A couple of days ago, I posted already a question regarding the convergence of fmincon. Let me make it a bit more concrete.&lt;br&gt;
&lt;br&gt;
I solve the following problem with fmincon:&lt;br&gt;
&lt;br&gt;
x0=ones(N,1) ./(N);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;f=@(x)funMV(x,tempCov);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A = [];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;b = [];&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Aeq = ones(1,N);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;beq = 1;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lb =-inf * ones(N,1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;%lb = zeros(N,1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ub = ones(N,1).*inf;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;options = optimset('Algorithm', 'sqp', 'Display', 'off', 'TolX',1e-6,'TolFun',1e-6,'MaxIter',10000, 'MaxFunEvals', 10000);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MV = fmincon(f,x0,A,b,Aeq,beq,lb,ub,[],options);&lt;br&gt;
&lt;br&gt;
with: &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function y = funMV(x,tempCov)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y = x' * tempCov * x;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&lt;br&gt;
This problem is finding the minimum variance portfolio and is well described in the literatur. I know that we can solve it with a close formula (or with quadprog). I do this exercice to see how "good" different solvers are.&lt;br&gt;
&lt;br&gt;
tempCov is simply a (annualized) covariance Matrix (70x70). I can post this covariance matrix if this is helpful. &lt;br&gt;
&lt;br&gt;
My observation is the following:&lt;br&gt;
1) the convergence is very slow. I need to increase the exit options to  optimset(... 'TolX',1e-8,'TolFun',1e-8,'MaxIter',100000, 'MaxFunEvals', 100000) to get a result which is "close enough" to the close formula.&lt;br&gt;
&lt;br&gt;
I think this is a "relevant" observation. Many papers in finance solve this kind of problems (convex optimization problem in 70 dimensions). They generally solve the problem with sqp but there is no indication about the "precision". &lt;br&gt;
&lt;br&gt;
I have to correct my other observation:&lt;br&gt;
1) the sqp and interior-point algorithms have very similar solutions but not exactly the same solution&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/QZkb84WMxiI" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320699#878882</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 07:37:09 -0400</pubDate>
      <title>Re: Trying to use extended ASCII code in Matlab</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/q6skA6iJ_Xo/320629</link>
      <author>Christoph </author>
      <description>"Star Strider" wrote in message &amp;lt;jqb2p7$ga6$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It seems this is not a problem with MATLAB.  The ‘Help’ for ‘char’ says: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ‘S = char(X) converts array X of nonnegative integer codes into a character array. Valid codes range from 0 to 65535, where codes 0 through 127 correspond to 7-bit ASCII characters. The characters that MATLAB can process (other than 7-bit ASCII characters) depend upon your current locale setting. To convert characters into a numeric array, use the double function.’  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you have a Windows system, open ‘Character Map’ and see what it displays.  On mine (Windows 7, U.S.), it apparently defaults to ‘Unicode’ without giving any further information, so char(252) yields ‘u’ with an umlaut, and double('ü') yields 252.0000.  ASCII beyond 127 doesn’t seem to be an option because Windows doesn’t support it.  &lt;br&gt;
&lt;br&gt;
Hi Star,&lt;br&gt;
&lt;br&gt;
thanks for your reply. I read the help text, too. As far as I know the encoding of the character depends not on the local system, but on the given font. Furthermore ACSII beyond 127 is not defiend because ASCII is, as you said before, just a 7bit code. The ASCII character 128 up to 255 are not defined distinctly. &lt;br&gt;
&lt;br&gt;
Nevermind, I tried to get character 2560 in arial (looked-up in charactermap on windows), but with char(2560) I just get a not displayed character, which implies that Matlab uses a different encoder or does not support this character. I guess the second might be realy poor, because this kind of characters allows you to draw simple paths without using any grafical interface but strings.&lt;br&gt;
&lt;br&gt;
If anybody has an idea how to get the "Rahmenelement" which might be "Frame-Element" in English feel free to give me a note.&lt;br&gt;
&lt;br&gt;
so long,&lt;br&gt;
CN&lt;br&gt;
&lt;br&gt;
So long,&lt;br&gt;
CN&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/q6skA6iJ_Xo" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320629#878881</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 07:34:09 -0400</pubDate>
      <title>Questions &gt; Warning: Executing startup failed in matlabrc.</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/_oGB9jfh-Lo/320698</link>
      <author>Kelvin </author>
      <description>Hi all pros,&lt;br&gt;
&lt;br&gt;
I'm trying to use timer and startat to schedule some daily and monthly process to automatically generate reports and stuff, so I created a startup file with the following code and put it under D:\MATLAB TESTSITE&lt;br&gt;
&lt;br&gt;
However, whenever Matlab opens, the following error message is shown, so I was wondering if anyone knows what went wrong and how can I fix it?&lt;br&gt;
&lt;br&gt;
Thank you in advance.  &lt;br&gt;
&lt;br&gt;
P.S. &lt;br&gt;
I'm trying to generate 2 reports on daily basis at 9:00 and 21:00 and update database on monthly basis on 10th, 20th and 30th (on 28th if it is February) &lt;br&gt;
&lt;br&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br&gt;
Warning: Executing startup failed in matlabrc.&lt;br&gt;
This indicates a potentially serious problem in your MATLAB setup,&lt;br&gt;
which should be resolved as soon as possible.  Error detected was:&lt;br&gt;
MATLAB:timer:startdelaynegative&lt;br&gt;
The specified start time has already passed. &lt;br&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
cd 'D:\MATLAB TESTSITE'&lt;br&gt;
t = timer('TimerFcn', 'MonthlyEarlyRun');&lt;br&gt;
startat(t, '21:00:00');&lt;br&gt;
&lt;br&gt;
cd 'D:\MATLAB TESTSITE'&lt;br&gt;
t1 = timer('TimerFcn', 'DayRun');&lt;br&gt;
startat(t1,'09:00:00');&lt;br&gt;
&lt;br&gt;
[y, m, d, h, mn, s] = datevec(today);&lt;br&gt;
&lt;br&gt;
if d == 30&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd 'D:\MATLAB TESTSITE'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t2 = timer('TimerFcn', 'MonthlyEarlyRun');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startat(t2,'12:00:00');&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
if d == 20&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd 'D:\MATLAB TESTSITE'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t3 = timer('TimerFcn', 'MonthlyMiddleRun');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startat(t3,'12:00:00');&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
if d == 30&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd 'D:\MATLAB TESTSITE'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t4 = timer('TimerFcn', 'MonthlyLateRun');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startat(t4,'12:00:00');&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
if m == 2 &amp;&amp; d == 28&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd 'D:\MATLAB TESTSITE'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t5 = timer('TimerFcn', 'MonthlyLateRun');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;startat(t5,'12:00:00');&lt;br&gt;
end&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/_oGB9jfh-Lo" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/320698#878880</feedburner:origLink></item>
    <item>
      <pubDate>Mon, 04 Jun 2012 07:09:06 -0400</pubDate>
      <title>Re: Correct use of fftshift and ifftshift at inpu tto fft and ifft</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/XmJBO6LYOyU/285244</link>
      <author>Du Huynh</author>
      <description>I always avoid to use fftshift and ifftshift as much as I can.  If you pass a 2D image to the fft2 function, then the output 2D array always has the DC term at the first element position (i.e., the top-left corner of the 2D array for the row-column coordinate system). If all the frequency-domain filters that you design have the DC terms at the same position, then you don't need to use fftshift or ifftshift. I would use fftshift only if I want to visualize the Fourier spectrum of my image.&lt;br&gt;
&lt;br&gt;
I have verified the following from my frequent uses of these functions:&lt;br&gt;
* fftshift = ifftshift if your image has even numbers of rows and columns.&lt;br&gt;
* always use fftshift if you want to move the DC term from the top-left corner to the centre of the 2D array, regardless of the size of your input image (odd or even number of rows and colums).&lt;br&gt;
* always use ifftshift if you want to move the DC term from the centre of the 2D array to the top-left corner, regardless of the image size.&lt;br&gt;
* label your frequency axes correctly. If the number of elements is odd (i.e. N is odd below), then use (assuming that your sampling rate is 1)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;w = linspace(-0.5, 0.5, N)&lt;br&gt;
as your frequency array.&lt;br&gt;
If the number of elements is even (i.e. N is even below), then use&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;w = linspace(-0.5, 0.5, N);  w(end) = [ ]&lt;br&gt;
as your frequency array.&lt;br&gt;
&lt;br&gt;
Very often we found that it is easier to directly design a filter in the frequency domain with the DC term in the centre of the array. If this is the case, then I would suggest that, after you have got your filter, you call ifftshift to swap the quadrants so that the DC term is at the top-left corner of the image. From then on, everything you operate on has the DC terms at the top-left corner. To move back to the spatial domain, you don't need to do any quadrant shifting, all you need to do is call ifft2.&lt;br&gt;
&lt;br&gt;
The same applies to 1D signals -- just replace ifft2 by ifft and fft2 by fft in the above paragraphs.&lt;br&gt;
&lt;br&gt;
Du&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/XmJBO6LYOyU" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/285244#878879</feedburner:origLink></item>
  </channel>
</rss>

