<?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-2013 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>Tue, 21 May 2013 13:39:00 +0000</pubDate>
      <title>Re: create variables from struct wihout eval</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/gKD9GORj1Vc/329101</link>
      <author>Steven_Lord</author>
      <description>&lt;br&gt;
&lt;br&gt;
"Anders " &amp;lt;anders.frisk@afconsult.com&amp;gt; wrote in message &lt;br&gt;
news:knfj5o$nbs$1@newscl01ah.mathworks.com...&lt;br&gt;
&amp;gt; Hi&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; i'could not find a answer for this on the forum, so please let me know if &lt;br&gt;
&amp;gt; you know a way.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have a struct TP, it consits of several fields, a different number of &lt;br&gt;
&amp;gt; fields, and of different names depending on inputs. Now I want to create a &lt;br&gt;
&amp;gt; variable for each field, and name the variable the same as the field name.&lt;br&gt;
&lt;br&gt;
Why? This is generally considered a Bad Idea; see question 1 in the &lt;br&gt;
Programming section of the newsgroup FAQ for an explanation.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://matlab.wikia.com/wiki/FAQ"&gt;http://matlab.wikia.com/wiki/FAQ&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
[It used to be question 6 in that section, but ImageAnalyst moved it to &lt;br&gt;
question 1 in that section yesterday.]&lt;br&gt;
&lt;br&gt;
&amp;gt; This is done by getfields and by using eval. However, this is done many &lt;br&gt;
&amp;gt; times in my program, and eval is not very efficient, is there anyway to do &lt;br&gt;
&amp;gt; this without utsing eval?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;                s=fieldnames(TP);&lt;br&gt;
&amp;gt;                for j=1:length(s)&lt;br&gt;
&amp;gt;                    eval([s{j} '(end+1,:)=getfield(TP,s{j})']);        end&lt;br&gt;
&lt;br&gt;
Not without using SAVE and LOAD and risking "poofing" variables into your &lt;br&gt;
workspace, and that's not going to be any faster than EVAL since it has to &lt;br&gt;
do disk access.&lt;br&gt;
&lt;br&gt;
I recommend avoiding doing this with either EVAL or SAVE/LOAD. Just refer to &lt;br&gt;
the fields.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
To contact Technical Support use the Contact Us link on &lt;br&gt;
&lt;a href="http://www.mathworks.com"&gt;http://www.mathworks.com&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/gKD9GORj1Vc" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329101#904720</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 13:28:10 +0000</pubDate>
      <title>(sensitivity)-TP rate versus (1-Specificity)- FP rate ROC curve</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/ng_2mo5daVI/329107</link>
      <author>Sadiah </author>
      <description>I want to compare the performance of a segmentation algorithm against ground truth.&lt;br&gt;
The values for both TP rate and FP rate have been determined. How am going to plot the  &lt;br&gt;
ROC curve. I tried to plot those values directly in Matlab but the results was not as expected. Are there any other things need to be considered in producing the right ROC curve.&lt;br&gt;
&lt;br&gt;
Thanks.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/ng_2mo5daVI" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329107#904719</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 13:19:08 +0000</pubDate>
      <title>How to create a Human movement model (walking, standing up, sitting down, falling)</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/wKrlmqvmD7A/329106</link>
      <author>Julia </author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
I am the beginner user of MATLAB, I am currently doing my final year project which need to development a software system for elderly assisted living.&lt;br&gt;
&lt;br&gt;
It requires me to build human movement model (walking, standing up, sitting down, falling) and get the equations of the model, use Simulink to implement with Tri-axial accelerometers and simulate the sensor data suing those equations. With the signals generated, I can then test the fall detection program.&lt;br&gt;
&lt;br&gt;
I have came out with the fall detection algorithm, but it cost me lots of time thinking how to build the human movement model. I'm kind of lost.&lt;br&gt;
&lt;br&gt;
If anyone with the experience can guide me in building the model and get the equations. It will help me a lot in the project development!&lt;br&gt;
&lt;br&gt;
Thanks and looking forward to the reply!&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/wKrlmqvmD7A" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329106#904718</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 13:10:09 +0000</pubDate>
      <title>How to create a Human movement model (walking, standing up, sitting down, falling)</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/OANMVh3h9J0/329105</link>
      <author>Julia </author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
I am the beginner user of MATLAB and I am currently doing my final year project which need to develop a software system for elderly assisted living.&lt;br&gt;
&lt;br&gt;
It require me to build a human movement model (walking, standing up, sitting down, falling), get the equations of the model, use Simulink to implement with Tri-axial accelerometer and simulate the sensor data. With the data, then I can test my fall detection program.&lt;br&gt;
&lt;br&gt;
I am able to come out with the fall detection algorithm, but building the human movement model really cost me a lot of time and I am kind of lost.&lt;br&gt;
&lt;br&gt;
If anyone with the experience of this part can guide me how to create the model, find the equations, it will help me a lot!&lt;br&gt;
&lt;br&gt;
Thanks! Looking forward to the reply!!&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/OANMVh3h9J0" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329105#904717</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 11:59:57 +0000</pubDate>
      <title>Re: how to find the location of maximum in  MxN matrix</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/RY53aEosYWs/329104</link>
      <author>Alan_Weiss</author>
      <description>On 5/21/2013 7:40 AM, Liaquat Ali wrote:&lt;br&gt;
&amp;gt; Hallo&lt;br&gt;
&amp;gt; Is there any function to find the location of the maximum of the MxN &lt;br&gt;
&amp;gt; matrix ?&lt;br&gt;
&amp;gt; Regards&lt;br&gt;
&amp;gt; Ali&lt;br&gt;
doc max&lt;br&gt;
&lt;br&gt;
Alan Weiss&lt;br&gt;
MATLAB mathematical toolbox documentation&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/RY53aEosYWs" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329104#904716</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 11:51:09 +0000</pubDate>
      <title>Re: Data Conversion</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/AM6zSXCgCuc/329100</link>
      <author>Garba </author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;9dbad8fa-0ebf-4846-8bea-3b3ba71eb91a@googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Tuesday, May 21, 2013 10:08:09 PM UTC+12, Garba  wrote:&lt;br&gt;
&amp;gt; &amp;gt; I have a data set, a daily degree data (366 data points) that I want to convert to hourly values (24*366 = 8784 data points). The raw data obtained are averaged hourly values. So I want to reconvert to the hourly values by generating random hourly values that will represent the daily average values. Any hint on a MATLAB script that will do this?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You need to specify both the distribution and the scale parameter.&lt;br&gt;
&amp;gt; e.g., normal distribution with standard deviation of x.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Then you would do this:&lt;br&gt;
&amp;gt; y=ybar*ones(1,24) + x*randn(366,24);&lt;br&gt;
&amp;gt; y=y(:);&lt;br&gt;
&amp;gt; where ybar is a column vector (366 x 1) of daily means.&lt;br&gt;
Thanks very much it works, but when I average the 24 hourly values they dont equal the daily value&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/AM6zSXCgCuc" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329100#904715</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 11:45:13 +0000</pubDate>
      <title>Re: speech signal processing</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/PxNLzkwpd9Y/310057</link>
      <author>yusra </author>
      <description>"arsalan khan" &amp;lt;ardkhan138@yahoo.com&amp;gt; wrote in message &amp;lt;iursqu$29q$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;     I want to acquire speech signal of lenght 10 seconds with irregular volume adjustment. Could any one help me in this regard.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
hi,&lt;br&gt;
i was looking for speech production through AR model. if u hv found any thing on it please share .. THanks&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/PxNLzkwpd9Y" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/310057#904714</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 11:40:12 +0000</pubDate>
      <title>how to find the location of maximum in  MxN matrix</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/P7vkfl-ohmI/329104</link>
      <author>Liaquat Ali</author>
      <description>Hallo &lt;br&gt;
&lt;br&gt;
Is there any function to find the location of the maximum of the MxN matrix ? &lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
Ali&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/P7vkfl-ohmI" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329104#904713</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 11:24:30 +0000</pubDate>
      <title>PDF from a Markov Chain</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/ZEzfsOraJUw/329103</link>
      <author>Vevek</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I have generated the Markov chain, from the genrated markov chain i need to calculate the probability density function(PDF). How should i do it? Whether i have to use directly the generated Markov chain into any of the pdf function or i have to do any pre-processing of the data before finding the PDF. Need suggestions. &lt;br&gt;
&lt;br&gt;
Thanks&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/ZEzfsOraJUw" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329103#904712</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 10:50:09 +0000</pubDate>
      <title>Function similar to ISOSURFACE</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/M5blVBbRv1o/329102</link>
      <author>Gauss Peter </author>
      <description>Hi all,&lt;br&gt;
I need to find a function similar to isosurface, because it give me a lot of problem in an approximation of point cloud 3D, it creates some artifacts on the edge of the figure without a reason. So I need something similar that compute and find the points on the surface but doesnt render it (useless).&lt;br&gt;
Thank you&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/M5blVBbRv1o" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329102#904711</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 10:44:08 +0000</pubDate>
      <title>create variables from struct wihout eval</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/qIlJ3xcs8sc/329101</link>
      <author>Anders </author>
      <description>Hi&lt;br&gt;
&lt;br&gt;
i'could not find a answer for this on the forum, so please let me know if you know a way.&lt;br&gt;
&lt;br&gt;
I have a struct TP, it consits of several fields, a different number of fields, and of different names depending on inputs. Now I want to create a variable for each field, and name the variable the same as the field name. This is done by getfields and by using eval. However, this is done many times in my program, and eval is not very efficient, is there anyway to do this without utsing eval?&lt;br&gt;
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;s=fieldnames(TP);&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for j=1:length(s)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;eval([s{j} '(end+1,:)=getfield(TP,s{j})']);        &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/qIlJ3xcs8sc" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329101#904710</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 10:31:16 +0000</pubDate>
      <title>Re: Data Conversion</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/6zGEodkrvHs/329100</link>
      <author>TideMan</author>
      <description>On Tuesday, May 21, 2013 10:08:09 PM UTC+12, Garba  wrote:&lt;br&gt;
&amp;gt; I have a data set, a daily degree data (366 data points) that I want to convert to hourly values (24*366 = 8784 data points). The raw data obtained are averaged hourly values. So I want to reconvert to the hourly values by generating random hourly values that will represent the daily average values. Any hint on a MATLAB script that will do this?&lt;br&gt;
&lt;br&gt;
You need to specify both the distribution and the scale parameter.&lt;br&gt;
e.g., normal distribution with standard deviation of x.&lt;br&gt;
&lt;br&gt;
Then you would do this:&lt;br&gt;
y=ybar*ones(1,24) + x*randn(366,24);&lt;br&gt;
y=y(:);&lt;br&gt;
where ybar is a column vector (366 x 1) of daily means.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/6zGEodkrvHs" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329100#904709</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 10:08:09 +0000</pubDate>
      <title>Data Conversion</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/_ydIjJjSb14/329100</link>
      <author>Garba </author>
      <description>I have a data set, a daily degree data (366 data points) that I want to convert to hourly values (24*366 = 8784 data points). The raw data obtained are averaged hourly values. So I want to reconvert to the hourly values by generating random hourly values that will represent the daily average values. Any hint on a MATLAB script that will do this?&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/_ydIjJjSb14" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329100#904708</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 08:23:45 +0000</pubDate>
      <title>Re: Error in blas/lapack when linking to external library using mex</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/_A10TWHV-Jw/329099</link>
      <author>Nasser M. Abbasi</author>
      <description>On 5/21/2013 3:12 AM, Vincent wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Any suggestions on what might cause this error? Does matlab link to a proprietary blas/lapack library?&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Matlab uses mkl&lt;br&gt;
&lt;br&gt;
EDU&amp;gt;&amp;gt; version -lapack&lt;br&gt;
&lt;br&gt;
ans =&lt;br&gt;
&lt;br&gt;
Intel(R) Math Kernel Library Version 10.3.11 Product Build 20120606 for 32-bit applications&lt;br&gt;
Linear Algebra PACKage Version 3.4.1&lt;br&gt;
&lt;br&gt;
see also:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&lt;a href="http://en.wikipedia.org/wiki/Math_Kernel_Library"&gt;http://en.wikipedia.org/wiki/Math_Kernel_Library&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
"Intel's Math Kernel Library (MKL) is a library of optimized&lt;br&gt;
math routines for science, engineering, and financial applications.&lt;br&gt;
Core math functions include BLAS, LAPACK, ScaLAPACK, sparse solvers,&lt;br&gt;
fast Fourier transforms, and vector math."&lt;br&gt;
&lt;br&gt;
--Nasser&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/_A10TWHV-Jw" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329099#904707</feedburner:origLink></item>
    <item>
      <pubDate>Tue, 21 May 2013 08:12:09 +0000</pubDate>
      <title>Error in blas/lapack when linking to external library using mex</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/tPzK7x6MqBU/329099</link>
      <author>Vincent </author>
      <description>Hi all,&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I'm currently building a connection between an external library package and matlab using mex files. Previously, I assembled the matrices in matlab and subsequently exported/imported them using .mat files. Using a mex file linking to the library, I want to be able to directly call some functions to work on the matrices.  The mex file is the working, unchanged C-file plus some changes to exchange inputs and outputs (a routine to transfer sparse matrices).&lt;br&gt;
&lt;br&gt;
It compiles fine(both with the -lmwlapack -lmblas or with -llapack -lblas), but when running the mexfile, I get an error stating:&lt;br&gt;
&amp;nbsp;in "(BLAS) invert" at "src/blas/Algebra.cc:268"&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Error: invalid argument (argument 4 LAPACK::getrf)&lt;br&gt;
&lt;br&gt;
The interesting thing is that it runs just fine in the cpp-file, but it returns this error when running in the matlab environment.&lt;br&gt;
&lt;br&gt;
Any suggestions on what might cause this error? Does matlab link to a proprietary blas/lapack library?&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/tPzK7x6MqBU" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329099#904706</feedburner:origLink></item>
  </channel>
</rss>
