<?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>Wed, 19 Jun 2013 21:16:09 +0000</pubDate>
      <title>Logistic regression</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/_nFWqviFHyI/329964</link>
      <author>Amit </author>
      <description>I am looking to find something analogous to stepwise linear regression for logistic regression. I have 12 independent variables and I want to test them each one by one to understand if the model improves. &lt;br&gt;
&lt;br&gt;
I am using mnrfit right now and it does not provide the adjusted R square value as well. Is there any way I could get that stats in mnrfit too.&lt;br&gt;
&lt;br&gt;
Thanks very much in advance.  &lt;br&gt;
&lt;br&gt;
Amit Siroya&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/_nFWqviFHyI" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329964#906684</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 21:12:10 +0000</pubDate>
      <title>Can not pass variable to ode45</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/zZw5SfvP_6U/329963</link>
      <author>Sandip </author>
      <description>Hi:&lt;br&gt;
Please suggest a way... I have a command as below to solve the ode by ode45 and I need to pass three variables.&lt;br&gt;
[x,y]=ode45(@fnode,xspan,y0,c1,c2,c3);&lt;br&gt;
&lt;br&gt;
I have defined the function in .m file as &lt;br&gt;
function yprime = fnode(x,y,c1,c2,c3)&lt;br&gt;
&lt;br&gt;
However, I can not read in the c3 in the function (ode) file. c1 &amp; c2 are coming alright.&lt;br&gt;
&lt;br&gt;
Please help.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/zZw5SfvP_6U" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329963#906683</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 21:06:10 +0000</pubDate>
      <title>ginput modifications --- How?</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/_q5t_g_pHvg/329962</link>
      <author>Virgil Stokes</author>
      <description>My problem is based on ginput which returns the (x,y) coordinates of a large cross-hair when the left-button mouse is clicked. The modified ginput would use a vertical line as a pointer (not a crosshair), and it would return the x-coordinate of the position of the vertical line when the left mouse-button is clicked. How can I modify ginput to accomplish this?&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/_q5t_g_pHvg" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329962#906682</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 20:40:14 +0000</pubDate>
      <title>Beep function doesn't work</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/6HvGcumRxug/329961</link>
      <author>Chenchen </author>
      <description>I would like to use beep function in my m file. The code is &lt;br&gt;
beep on&lt;br&gt;
beep&lt;br&gt;
But no beep sound was produced. I've checked the setting of Windows default sound. It has been set enabled. Anyone can help me out? Help much appreciated!!&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/6HvGcumRxug" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329961#906681</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 20:39:07 +0000</pubDate>
      <title>Re: Error : Inner matrix dimensions must agree When computing the three dimensional integral.</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/rKluaS3fQgg/329957</link>
      <author>yolanda </author>
      <description>Hi, thanks for your reply. But I don't think something wrong with the matrix dimensions.&lt;br&gt;
The first matrix is 1*3, the second one is 3*3, and the last one is 3*1.&lt;br&gt;
So it should give the result of 1*1 matrix...&lt;br&gt;
&lt;br&gt;
Any comments?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
"someone" wrote in message &amp;lt;kpt46r$qf3$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "yolanda" wrote in message &amp;lt;kpskm1$d1b$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Error : Inner matrix dimensions must agree When computing the three dimensional integral. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I don't have MATLAB installed on this computer, &lt;br&gt;
&amp;gt; but I'm wondering if you have the commas &amp; semicolons &lt;br&gt;
&amp;gt; reversed in your anonymous function handle statement.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just a thuoght since no one else has replied.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/rKluaS3fQgg" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329957#906680</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 20:35:09 +0000</pubDate>
      <title>Re: Error : Inner matrix dimensions must agree When computing the three dimensional integral.</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/WNuOinXuJt4/329957</link>
      <author>yolanda </author>
      <description>HI, thanks for your reply. But I think the matrix dimensions are matched.&lt;br&gt;
The first one is 1*3 matrix, the second is 3*3, the last one is 3*1.&lt;br&gt;
So it should come out the result of 1*1 matrix. &lt;br&gt;
&lt;br&gt;
Any comments ? &lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
"someone" wrote in message &amp;lt;kpt46r$qf3$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "yolanda" wrote in message &amp;lt;kpskm1$d1b$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Error : Inner matrix dimensions must agree When computing the three dimensional integral. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I don't have MATLAB installed on this computer, &lt;br&gt;
&amp;gt; but I'm wondering if you have the commas &amp; semicolons &lt;br&gt;
&amp;gt; reversed in your anonymous function handle statement.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just a thuoght since no one else has replied.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/WNuOinXuJt4" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329957#906679</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 20:27:07 +0000</pubDate>
      <title>Re: Error : Inner matrix dimensions must agree When computing the three dimensional integral.</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/5hjv-bKga7U/329957</link>
      <author>someone </author>
      <description>"yolanda" wrote in message &amp;lt;kpskm1$d1b$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Error : Inner matrix dimensions must agree When computing the three dimensional integral. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The code is as follows:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;         m1 = 20;&lt;br&gt;
&amp;gt;         v1 = 60;&lt;br&gt;
&amp;gt;         m2 = 20;&lt;br&gt;
&amp;gt;         v2 = 60; &lt;br&gt;
&amp;gt;         m3 = 20;&lt;br&gt;
&amp;gt;         v3 = 60;        &lt;br&gt;
&amp;gt;         cov = [ 60,0,0;&lt;br&gt;
&amp;gt;                 0,60,0;&lt;br&gt;
&amp;gt;                 0,0,60]&lt;br&gt;
&amp;gt;         cov1=inv(cov)&lt;br&gt;
&amp;gt;       &lt;br&gt;
&amp;gt;         f = @(z,y,x) exp( ([(x-m1),(y-m2),(z-m3)]*(cov1)*[(x-m1);(y-m2);(z-m3)])./(-2) )&lt;br&gt;
&amp;gt;         P1 = triplequad(f,0,1000,0,1000,0,1000);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am eager to getting the solution.... Anyone has any comments? I would appreciate !!!!! &lt;br&gt;
&lt;br&gt;
I don't have MATLAB installed on this computer, &lt;br&gt;
but I'm wondering if you have the commas &amp; semicolons &lt;br&gt;
reversed in your anonymous function handle statement.&lt;br&gt;
&lt;br&gt;
Just a thuoght since no one else has replied.&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/5hjv-bKga7U" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329957#906678</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 20:22:08 +0000</pubDate>
      <title>Re: GreyScale Image Analysis</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/T2vFtqVThY0/329959</link>
      <author>Matt </author>
      <description>I want to add my attempt so far, but im having some errors. &lt;br&gt;
&lt;br&gt;
Attempt:&lt;br&gt;
%Find the location of the max brightness on the line segment (0 is black, 255 is white)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;maxValue = 0;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for m = 1:((xmax-xmin)+1)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ((hsc_image(y,(xmin + m - 1)))&amp;gt; maxValue) &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;maxValue = (hsc_image(y,(xmin + m - 1))) ;  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[row col] = find((hsc_image(y,xmin:xmax)) == maxValue);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
plot(frames_time,row);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Errors:&lt;br&gt;
&lt;br&gt;
Error using plot&lt;br&gt;
Vectors must be the same lengths.&lt;br&gt;
&lt;br&gt;
Error in Matthew_Morelli_Lightning_Video_Processing (line&lt;br&gt;
101)&lt;br&gt;
plot(frames_time,row);&lt;br&gt;
&lt;br&gt;
Error in run (line 64)&lt;br&gt;
evalin('caller', [script ';']);&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/T2vFtqVThY0" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329959#906677</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 20:06:42 +0000</pubDate>
      <title>Re: read numerical text file by fixed column width, no delimiters</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/FQbkA5Yrn_8/329934</link>
      <author>dpb</author>
      <description>On 6/19/2013 2:36 PM, Kristin wrote:&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
OK, here's a very rough, not terribly user=friendly outline, but should &lt;br&gt;
get the job done...&lt;br&gt;
&lt;br&gt;
program tentoeleven&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;character(len=132):: fold, fnew  ! A filename for old, new file&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;real              :: v(8)        ! Data array of 8 floats&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;read(*,*) fold                   ! It'll wait for you...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;open(11,file=fold,action='read',status='old')&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;read(*,*) fnew                   ! It'll wait for you...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;open(12,file=fnew,action='write',status='new')&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;ios=0&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;do while(ios.eq.0)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;read(11,'(F10.4)',iostat=ios) v ! read the old file F10.4&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;write(12,'(F11.4)') v           ! F11.4 will insert space delimiter&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;end do&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;close(11)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;close(12)&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
Will continue 'til EOF condition on the old file at which time the &lt;br&gt;
IOSTATUS variable will become &amp;lt;0.  Of course, other errors will also &lt;br&gt;
abort, but one presumes the files are otherwise, clean.&lt;br&gt;
&lt;br&gt;
--&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/FQbkA5Yrn_8" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329934#906676</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 19:38:07 +0000</pubDate>
      <title>Re: Build up a given matrix from a set of matrices</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/wwz9lwTEozI/329909</link>
      <author>james bejon</author>
      <description>P.S.  Could you post your algorithm that works for smaller sizes, just so I can make sure I've understood the problem correctly?&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/wwz9lwTEozI" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329909#906675</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 19:36:11 +0000</pubDate>
      <title>Re: read numerical text file by fixed column width, no delimiters</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/kEBpBCGqtBA/329934</link>
      <author>Kristin </author>
      <description>dpb &amp;lt;none@non.net&amp;gt; wrote in message &amp;lt;kpq7fb$i95$1@speranza.aioe.org&amp;gt;...&lt;br&gt;
&amp;gt; On 6/17/2013 6:15 PM, Kristin wrote:&lt;br&gt;
&amp;gt; &amp;gt; I have a large text file containing 8 columns of numbers and each column&lt;br&gt;
&amp;gt; &amp;gt; has a fixed width of 10 characters (so the total length of each row is&lt;br&gt;
&amp;gt; &amp;gt; 80 characters). The first character in each group of 10 characters is&lt;br&gt;
&amp;gt; &amp;gt; either a space or a negative sign.&lt;br&gt;
&amp;gt; &amp;gt; So for example a typical line is:&lt;br&gt;
&amp;gt; &amp;gt; -1.6999E-3-1.3266E-3 1.2916E-3 3.5491E-4 1.1022E-3-9.5555E-4-3.9528E-4&lt;br&gt;
&amp;gt; &amp;gt; 3.5200E-4&lt;br&gt;
&amp;gt; &amp;gt; I was trying various approaches with textread or textscan and was trying&lt;br&gt;
&amp;gt; &amp;gt; to use %c because %s requires whitespace separated values which is not&lt;br&gt;
&amp;gt; &amp;gt; always the case here. Is there an easy way to read such a file in&lt;br&gt;
&amp;gt; &amp;gt; Matlab? I either need eight vectors of numbers (ideally)...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Oh, forgot another "trick" I've used on occasion.  How well it works &lt;br&gt;
&amp;gt; depends on the size of the file...if can hold in memory works pretty &lt;br&gt;
&amp;gt; good; if have to can do in "chunks" that do fit...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Given you have a line as yours above I make it two to demonstrate for &lt;br&gt;
&amp;gt; the general case...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  &amp;gt;&amp;gt; m=[l;l];&lt;br&gt;
&amp;gt;  &amp;gt;&amp;gt; v=reshape(str2num(reshape(m',10,[])'),8,[])'&lt;br&gt;
&amp;gt; v =&lt;br&gt;
&amp;gt; -0.0017  -0.0013   0.0013   0.0004   0.0011  -0.0010  -0.0004   0.0004&lt;br&gt;
&amp;gt; -0.0017  -0.0013   0.0013   0.0004   0.0011  -0.0010  -0.0004   0.0004&lt;br&gt;
&amp;gt;  &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just have to know the number per line and the width of the field for the &lt;br&gt;
&amp;gt; two reshape() operations.  The first casts the input character array &lt;br&gt;
&amp;gt; into a column of the right number of characters/line one field/row; the &lt;br&gt;
&amp;gt; second recasts into the known number of entries/line.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Again and still a lot of machinations for what _should_ be doable &lt;br&gt;
&amp;gt; directly by the i/o runtime formatting but C is "just broke" in this regard.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; --&lt;br&gt;
&lt;br&gt;
Thanks for the suggestions.  I will try one of those methods (reshape or fgetl to do it a line at a time).  Otherwise I'll see if I can just make a quick fortran script although I haven't previously used fortran for my coding.&lt;br&gt;
&lt;br&gt;
Kristin&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/kEBpBCGqtBA" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329934#906674</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 19:08:13 +0000</pubDate>
      <title>Re: Fractional order trasfer function in matlab</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/1mYWJSKiY1I/251183</link>
      <author>LUIS munoz</author>
      <description>"Venu" wrote in message &amp;lt;hgcjm7$s02$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; The folder in which the file fotf is present must be named as @fotf&lt;br&gt;
&lt;br&gt;
I am now runnig this piece of matlab software:&lt;br&gt;
&lt;br&gt;
kp=2.872185234368413;&lt;br&gt;
ki=5.729820976261658;&lt;br&gt;
niu=0.5784;&lt;br&gt;
&lt;br&gt;
reg= fotf([1,0],[niu,0],[kp, kp*ki],[niu,0]);&lt;br&gt;
H=fotf([1.7,1],[1,0],[1],[0]);&lt;br&gt;
figure(1),bode(H*reg)&lt;br&gt;
&lt;br&gt;
The error is:&lt;br&gt;
&lt;br&gt;
??? Access to an object's fields is only permitted within its methods.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; mtimes at 3&lt;br&gt;
a=kron(G1.a,G2.a);&lt;br&gt;
&lt;br&gt;
Could you please help me with this?. Thanks a lot. Luis&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/1mYWJSKiY1I" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251183#906672</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 19:08:13 +0000</pubDate>
      <title>Re: Build up a given matrix from a set of matrices</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/Apb8VE3fhLc/329909</link>
      <author>james bejon</author>
      <description>Well, this is nothing to do with your algorithm as such.  But the first thing that occurs to me is that you could easily convert each row into a single number; suppose, for instance, your integers are both int8; you could then make that a single int16, e.g.,&lt;br&gt;
&lt;br&gt;
n1 = [int8(10), int8(20)];&lt;br&gt;
&lt;br&gt;
t  = typecast(n1, 'int16');&lt;br&gt;
&lt;br&gt;
n2 = typecast(t,  'int8');&lt;br&gt;
&lt;br&gt;
isequal(n1, n2) &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
You could then reduce your problem to dealing with single numbers rather than rows all the time, which might make life easier and quicker.&lt;br&gt;
&lt;br&gt;
Meanwhile, I'll have a think about the algorithm itself and let you know if anything springs to mind...&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/Apb8VE3fhLc" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329909#906673</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 19:02:10 +0000</pubDate>
      <title>Running fotf</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/ZRyMagaFyS4/329960</link>
      <author>LUIS munoz</author>
      <description>Hello nice helpers, I am trying to run this piece of software:&lt;br&gt;
&lt;br&gt;
kp=2.872185234368413;&lt;br&gt;
ki=5.729820976261658;&lt;br&gt;
niu=0.5784;&lt;br&gt;
&lt;br&gt;
reg= fotf([1,0],[niu,0],[kp, kp*ki],[niu,0]);&lt;br&gt;
H=fotf([1.7,1],[1,0],[1],[0]);&lt;br&gt;
figure(1),bode(H*reg)&lt;br&gt;
&lt;br&gt;
But here I got the error:&lt;br&gt;
&lt;br&gt;
??? Access to an object's fields is only permitted within its methods.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; mtimes at 3&lt;br&gt;
a=kron(G1.a,G2.a);&lt;br&gt;
&lt;br&gt;
Could you please help me with this error?. Thanks a lot. Luis&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/ZRyMagaFyS4" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329960#906671</feedburner:origLink></item>
    <item>
      <pubDate>Wed, 19 Jun 2013 17:41:12 +0000</pubDate>
      <title>Re: How to use Split function in Matlab.</title>
      <link>http://feedproxy.google.com/~r/mathworks/zAHF/~3/03AWi4vIgkM/329954</link>
      <author>dpb</author>
      <description>On 6/19/2013 8:54 AM, dpb wrote:&lt;br&gt;
&amp;gt; On 6/19/2013 7:20 AM, dpb wrote:&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
&amp;gt; OK, here's the utility I threw together and keep around for such simple&lt;br&gt;
&amp;gt; parsing...no error handling and nothing but simple-minded included. :)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I couldn't recall what I had name it earlier...obviously by that it's&lt;br&gt;
&amp;gt; not used much, but is handy on occasion.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; function tok = tokens(s,d)&lt;br&gt;
&amp;gt; % Simple string parser returns tokens in input string s&lt;br&gt;
&amp;gt; %&lt;br&gt;
&amp;gt; % STRTOK(S) the tokens in the string S delimited&lt;br&gt;
&amp;gt; % by "white space". Any leading white space characters are ignored.&lt;br&gt;
&amp;gt; %&lt;br&gt;
&amp;gt; % STRTOK(S,D) returns tokens delimited by one of the&lt;br&gt;
&amp;gt; % characters in D. Any leading delimiter characters are ignored.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; % Rev: 1.0 DPBozarth 5Jun2000&lt;br&gt;
&amp;gt;&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
And I just noticed for the first time I never fixed the help text to &lt;br&gt;
match the function name...clear it doesn't get much attention. :)&lt;br&gt;
&lt;br&gt;
function tok = tokens(s,d)&lt;br&gt;
% Simple string parser returns tokens in input string s&lt;br&gt;
%&lt;br&gt;
% TOKENS(S) the tokens in the string S delimited&lt;br&gt;
% by "white space". Any leading white space characters are ignored.&lt;br&gt;
%&lt;br&gt;
% TOKENS(S,D) returns tokens delimited by one of the&lt;br&gt;
% characters in D. Any leading delimiter characters are ignored.&lt;br&gt;
&lt;br&gt;
--&lt;img src="http://feeds.feedburner.com/~r/mathworks/zAHF/~4/03AWi4vIgkM" height="1" width="1"/&gt;</description>
    <feedburner:origLink>http://www.mathworks.com/matlabcentral/newsreader/view_thread/329954#906670</feedburner:origLink></item>
  </channel>
</rss>
