<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Matlab Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'Matlab' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 08:19:28 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 08:19:28 -0800</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Equation with 3 unknowns. how do i find the maximum solution?</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427309/427309/equation-with-3-unknowns-how-do-i-find-the-maximum-solution/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
Im stuck in matlab, i have an equation with 3 unknowns. how can i get the maximum answer possible? Is there a way with a 3D graph??&lt;br /&gt;
&lt;br /&gt;
Equation:&lt;br /&gt;
&lt;br /&gt;
F = ( sqrt((b^2 + c^2) -(2b c cos(y))) x M ) / (b c sin(y))&lt;br /&gt;
&lt;br /&gt;
I have M as an answer in terms of y. its &amp;lt;1 x 111 double &amp;gt;&lt;br /&gt;
&lt;br /&gt;
I have the following limits: 0&amp;lt;b&amp;lt;6 , 0&amp;lt;c&amp;lt;6 and 0&amp;lt;y&amp;lt;110&lt;br /&gt;
&lt;br /&gt;
I am looking to get the maximum F, any help is appreciated thanks!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427309/427309/equation-with-3-unknowns-how-do-i-find-the-maximum-solution/</guid>
      <pubDate>Wed, 08 Feb 2012 16:39:24 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>How to find a complex root from the determinate of a matrix? [URGENT]</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427277/427277/how-to-find-a-complex-root-from-the-determinate-of-a-matrix-urgent/</link>
      <description>Hi everyone,&lt;br /&gt;
&lt;br /&gt;
Im having a trouble that can be described into two steps:&lt;br /&gt;
&lt;br /&gt;
1)Im having a square complex matrix with unknown x.&lt;br /&gt;
&lt;br /&gt;
2)I need to find x such that the determine of the matrix is zero.&lt;br /&gt;
&lt;br /&gt;
Im trying to separate the solution into real and imag part and solve:&lt;br /&gt;
&lt;br /&gt;
Function detM = detMcal(x,a,delta,L)&lt;br /&gt;
&lt;br /&gt;
complexX = complex(x(1:2:end), x(2:2:end));&lt;br /&gt;
&lt;br /&gt;
complexY  = det(Matrix(x,a,delta,L))&lt;br /&gt;
&lt;br /&gt;
detM = [real(complexY); imag(complexY)];&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
*and*&lt;br /&gt;
&lt;br /&gt;
x = fsolve(@(x) detMcal(x,a,delta,L),[1,1]);&lt;br /&gt;
&lt;br /&gt;
solution = complex(x(1:2:end), x(2:2:end))&lt;br /&gt;
&lt;br /&gt;
But the program is not working. Is my code wrong or are there any better &lt;br /&gt;
&lt;br /&gt;
method?&lt;br /&gt;
&lt;br /&gt;
Many Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427277/427277/how-to-find-a-complex-root-from-the-determinate-of-a-matrix-urgent/</guid>
      <pubDate>Tue, 07 Feb 2012 06:34:04 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>How to find a complex root from the determinate of a matrix? [URGENT]</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427276/427276/how-to-find-a-complex-root-from-the-determinate-of-a-matrix-urgent/</link>
      <description>Hi everyone,&lt;br /&gt;
&lt;br /&gt;
Im having a trouble that can be described into two steps:&lt;br /&gt;
&lt;br /&gt;
1)Im having a square complex matrix with unknown x.&lt;br /&gt;
&lt;br /&gt;
2)I need to find x such that the determine of the matrix is zero.&lt;br /&gt;
&lt;br /&gt;
Im trying to separate the solution into real and imag part and solve:&lt;br /&gt;
&lt;br /&gt;
Function detM = detMcal(x,a,delta,L)&lt;br /&gt;
&lt;br /&gt;
complexX = complex(x(1:2:end), x(2:2:end));&lt;br /&gt;
&lt;br /&gt;
complexY  = det(Matrix(x,a,delta,L))&lt;br /&gt;
&lt;br /&gt;
detM = [real(complexY); imag(complexY)];&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
*and*&lt;br /&gt;
&lt;br /&gt;
x = fsolve(@(x) detMcal(x,a,delta,L),[1,1]);&lt;br /&gt;
&lt;br /&gt;
solution = complex(x(1:2:end), x(2:2:end))&lt;br /&gt;
&lt;br /&gt;
But the program is not working. Is my code wrong or are there any better &lt;br /&gt;
&lt;br /&gt;
method?&lt;br /&gt;
&lt;br /&gt;
Many Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427276/427276/how-to-find-a-complex-root-from-the-determinate-of-a-matrix-urgent/</guid>
      <pubDate>Tue, 07 Feb 2012 06:32:06 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Matlab Parallel Programming help needed!!!</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427246/427246/matlab-parallel-programming-help-needed/</link>
      <description>&lt;br /&gt;
Hi, I am a noob in matlab anf I am trying to parallelize loading of an array file.&lt;br /&gt;
&lt;br /&gt;
So suppose the array size is X by Y. I would like to load this file to "n" matlab workers giving X/n by Y to 1st worker and X/n by Y to another and so on.... Does anyone know how can I achieve that since the file is too large and load of that file in a distributed way can save me loads of time.&lt;br /&gt;
&lt;br /&gt;
So I am trying something like this for my application:&lt;br /&gt;
&lt;br /&gt;
1. Start n worker nodes&lt;br /&gt;
2. load X/n by Y data on each worker node&lt;br /&gt;
3. Output = function (X/n, Y)&lt;br /&gt;
4. Final Output = Gather (Output)&lt;br /&gt;
5. Stop all worker nodes.&lt;br /&gt;
&lt;br /&gt;
Do let me know if you can help me in any possible way.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427246/427246/matlab-parallel-programming-help-needed/</guid>
      <pubDate>Sun, 05 Feb 2012 14:48:34 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Very urgent please help</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427232/427232/very-urgent-please-help/</link>
      <description>Hi Everybody,&lt;br /&gt;
I am now facing problems with solving integration by matlab. these equations are given below-&lt;br /&gt;
&lt;br /&gt;
X(t)=integration((Vx(t)+Vy(t))/2*cos(theta)dt)&lt;br /&gt;
&lt;br /&gt;
where Vx,Vy and theta are functions of time(t).&lt;br /&gt;
the limit is to to t1.&lt;br /&gt;
&lt;br /&gt;
I am having problem with that i can not define Vx,Vy and theta as a function of t, so that i can integrate this whole equation with time derivative.&lt;br /&gt;
&lt;br /&gt;
please help !!!!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427232/427232/very-urgent-please-help/</guid>
      <pubDate>Sun, 05 Feb 2012 00:43:25 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>ssor</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427206/427206/ssor/</link>
      <description>can someone help me code ssor in matlab please&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427206/427206/ssor/</guid>
      <pubDate>Fri, 03 Feb 2012 10:08:06 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>ssor</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427205/427205/ssor/</link>
      <description>can someone help me code ssor in matlab please&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427205/427205/ssor/</guid>
      <pubDate>Fri, 03 Feb 2012 10:06:13 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>help with vectors</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427156/427156/help-with-vectors/</link>
      <description>Hello all. I am trying to write a function to determine if a number is prime without using a for loop. More specifically, the function needs to be "vectorized". I am able to write a function to determine if any number is prime using a for loop, but I am unable to figure out how to write a function that will determine if a number is prime by using a function without a for loop.&lt;br /&gt;
&lt;br /&gt;
Any help would be greatly appreciated.&lt;br /&gt;
&lt;br /&gt;
Here is what I have tried, but I cannot get my output to tell me anything (i.e. it does not return any 1s or 0s):&lt;br /&gt;
&lt;br /&gt;
function [noloop]=isPrime_noloop(n)&lt;br /&gt;
n = ones(1,40000000);&lt;br /&gt;
j = 2;&lt;br /&gt;
while(j&amp;lt;(40000000/2))&lt;br /&gt;
    n((j*2):j:end) = 0;&lt;br /&gt;
    j = j+1;&lt;br /&gt;
    while(n(j)==0) % find next prime&lt;br /&gt;
j = j+1; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427156/427156/help-with-vectors/</guid>
      <pubDate>Wed, 01 Feb 2012 17:25:49 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Help on a Matlab/Structural problem</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427154/427154/help-on-a-matlabstructural-problem/</link>
      <description>Can anyone do this for me with Matlab? I have no clue how to go about it. The directions are on the attachment. Its really confusing me and I'm not the best with Matlab in general.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
thanks a lot!&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2283"&gt;CE305.jpg&lt;/a&gt; (704646 bytes | downloaded 8 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427154/427154/help-on-a-matlabstructural-problem/</guid>
      <pubDate>Wed, 01 Feb 2012 16:38:14 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>HELP! How to do this Function</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427152/427152/help-how-to-do-this-function/</link>
      <description>Guys&lt;br /&gt;
Please Help me i really noob in matlab&lt;br /&gt;
even i can do this simple thing&lt;br /&gt;
&lt;br /&gt;
I have to plot this function&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;x=t*exp(-2*t)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
from t = 0 till 10&lt;br /&gt;
&lt;br /&gt;
the first thing i do is i give the t value using this command&lt;br /&gt;
&lt;br /&gt;
t=0:0.01:10;&lt;br /&gt;
&lt;br /&gt;
then i give matlab the x function&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;x=t*exp(-2*t)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
matlab give me this feedback&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Error using  * &lt;br /&gt;
Inner matrix dimensions must agree.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
then i realize when i give t a value matlab recognize it as matrix&lt;br /&gt;
that means exp(-2*t) also a matrix&lt;br /&gt;
&lt;br /&gt;
so i can't times the matrix with unfit dimensions&lt;br /&gt;
&lt;br /&gt;
then my question how is the proper way to  resolve this function in matlab&lt;br /&gt;
&lt;br /&gt;
please i really need your help &lt;br /&gt;
&lt;br /&gt;
thank you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427152/427152/help-how-to-do-this-function/</guid>
      <pubDate>Wed, 01 Feb 2012 12:42:13 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>HELP! How to do this Function</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427151/427151/help-how-to-do-this-function/</link>
      <description>Guys&lt;br /&gt;
Please Help me i really noob in matlab&lt;br /&gt;
even i can do this simple thing&lt;br /&gt;
&lt;br /&gt;
I have to plot this function&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;x=t*exp(-2*t)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
from t = 0 till 10&lt;br /&gt;
&lt;br /&gt;
the first thing i do is i give the t value using this command&lt;br /&gt;
&lt;br /&gt;
t=0:0.01:10;&lt;br /&gt;
&lt;br /&gt;
then i give matlab the x function&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;x=t*exp(-2*t)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
matlab give me this feedback&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Error using  * &lt;br /&gt;
Inner matrix dimensions must agree.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
then i realize when i give t a value matlab recognize it as matrix&lt;br /&gt;
that means exp(-2*t) also a matrix&lt;br /&gt;
&lt;br /&gt;
so i can't times the matrix with unfit dimensions&lt;br /&gt;
&lt;br /&gt;
then my question how is the proper way to  resolve this function in matlab&lt;br /&gt;
&lt;br /&gt;
please i really need your help &lt;br /&gt;
&lt;br /&gt;
thank you&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427151/427151/help-how-to-do-this-function/</guid>
      <pubDate>Wed, 01 Feb 2012 12:38:42 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Machine vision toolbox compatibility</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427140/427140/machine-vision-toolbox-compatibility/</link>
      <description>Hey,&lt;br /&gt;
&lt;br /&gt;
wondering if anyone can tell me if the machine vision toolbox is compatible with Matlab version 2007b as when i try to execute after download errors continue to pop up looking for 'rtbstartup'?? really appreciate if anyone has any info on this!!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427140/427140/machine-vision-toolbox-compatibility/</guid>
      <pubDate>Wed, 01 Feb 2012 04:47:14 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Machine vision toolbox compatibility</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427139/427139/machine-vision-toolbox-compatibility/</link>
      <description>Hey,&lt;br /&gt;
&lt;br /&gt;
wondering if anyone can tell me if the machine vision toolbox is compatible with Matlab version 2007b as when i try to execute after download errors continue to pop up looking for 'rtbstartup'?? really appreciate if anyone has any info on this!!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427139/427139/machine-vision-toolbox-compatibility/</guid>
      <pubDate>Wed, 01 Feb 2012 04:45:23 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>How to plot this function ?</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427124/427124/how-to-plot-this-function-/</link>
      <description>My function is;&lt;br /&gt;
&lt;br /&gt;
y(x,s)= 1-(cos[(s-1)arctan(x)]*gamma(s-1))/(1+x^2)^(s-1)/2&lt;br /&gt;
&lt;br /&gt;
varible x will have range from 0 to 10. At one time the s value will be constant e.g. s = 3 but I want to change s for different values( is there any commands in matlab that will allow me to do this ?). I tried many time but can't get it.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427124/427124/how-to-plot-this-function-/</guid>
      <pubDate>Tue, 31 Jan 2012 10:27:56 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>How to plot this function ?</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427123/427123/how-to-plot-this-function-/</link>
      <description>My function is;&lt;br /&gt;
&lt;br /&gt;
y(x,s)= 1-(cos[(s-1)arctan(x)]*gamma(s-1))/(1+x^2)^(s-1)/2&lt;br /&gt;
&lt;br /&gt;
varible x will have range from 0 to 10. At one time the s value will be constant e.g. s = 3 but I want to change s for different values( is there any commands in matlab that will allow me to do this ?). I tried many time but can't get it.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427123/427123/how-to-plot-this-function-/</guid>
      <pubDate>Tue, 31 Jan 2012 10:26:05 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>2D plot of a function - URGENT !!</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427122/427122/2d-plot-of-a-function---urgent-/</link>
      <description>My function is;&lt;br /&gt;
&lt;br /&gt;
y(x,s)= 1-(cos[(s-1)arctan(x)]*gamma(s-1))/(1+x^2)^(s-1)/2&lt;br /&gt;
&lt;br /&gt;
varible x will have range from 0 to 10. At one time the s value will be constant e.g. s = 3 but I want to change s for different values( is there any commands in matlab that will allow me to do this ?). I tried many time but can't get it.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427122/427122/2d-plot-of-a-function---urgent-/</guid>
      <pubDate>Tue, 31 Jan 2012 10:09:08 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>2D plot of a function - URGENT !!</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427121/427121/2d-plot-of-a-function---urgent-/</link>
      <description>My function is;&lt;br /&gt;
&lt;br /&gt;
y(x,s)= 1-(cos[(s-1)arctan(x)]*gamma(s-1))/(1+x^2)^(s-1)/2&lt;br /&gt;
&lt;br /&gt;
varible x will have range from 0 to 10. At one time the s value will be constant e.g. s = 3 but I want to change s for different values( is there any commands in matlab that will allow me to do this ?). I tried many time but can't get it.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427121/427121/2d-plot-of-a-function---urgent-/</guid>
      <pubDate>Tue, 31 Jan 2012 10:07:17 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>MatLab for DAQ</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427107/427107/matlab-for-daq/</link>
      <description>I am trying to use a NI-6025 controller for various testing applications at my company.  Below is the code that I am trying to use for data acquisition:&lt;br /&gt;
&lt;br /&gt;
ai = analoginput('nidaq','Dev1');&lt;br /&gt;
addchannel(ai,0);&lt;br /&gt;
ai;&lt;br /&gt;
start(ai)&lt;br /&gt;
wait(ai,2)&lt;br /&gt;
data = getdata(ai);&lt;br /&gt;
plot(data)&lt;br /&gt;
&lt;br /&gt;
When I get to the 'start' command, however, I receive an error:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Red;"&gt;??? The hardware you are trying to use is already&lt;br /&gt;
reserved, either by another&lt;br /&gt;
object in this MATLAB session, or possibly by another&lt;br /&gt;
application. To unreserve&lt;br /&gt;
the device if held by this session of MATLAB or another&lt;br /&gt;
MATLAB session, delete&lt;br /&gt;
the object that may have it reserved, or run daqreset.&lt;br /&gt;
As a last resort, use&lt;br /&gt;
National Instrument's Measurement &amp;amp; Automation Explorer&lt;br /&gt;
to reset the device.&lt;br /&gt;
&lt;br /&gt;
Error in ==&amp;gt; daqdevice.start at 62&lt;br /&gt;
start( daqgetfield(obj,'uddobject') );&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I've restarted my computer to verify that nothing else could possibly be referencing the controller, and I've also verified on the Measurement and Automation Explorer that the device is free.  Does anyone have any suggestions as how I could receive data from my controller?  Your help is appreciated.&lt;br /&gt;
&lt;br /&gt;
-Austin&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427107/427107/matlab-for-daq/</guid>
      <pubDate>Mon, 30 Jan 2012 13:16:32 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>MatLab for DAQ</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427106/427106/matlab-for-daq/</link>
      <description>I am trying to use a NI-6025 controller for various testing applications at my company.  Below is the code that I am trying to use for data acquisition:&lt;br /&gt;
&lt;br /&gt;
ai = analoginput('nidaq','Dev1');&lt;br /&gt;
addchannel(ai,0);&lt;br /&gt;
ai;&lt;br /&gt;
start(ai)&lt;br /&gt;
wait(ai,2)&lt;br /&gt;
data = getdata(ai);&lt;br /&gt;
plot(data)&lt;br /&gt;
&lt;br /&gt;
When I get to the 'start' command, however, I receive an error:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Red;"&gt;??? The hardware you are trying to use is already&lt;br /&gt;
reserved, either by another&lt;br /&gt;
object in this MATLAB session, or possibly by another&lt;br /&gt;
application. To unreserve&lt;br /&gt;
the device if held by this session of MATLAB or another&lt;br /&gt;
MATLAB session, delete&lt;br /&gt;
the object that may have it reserved, or run daqreset.&lt;br /&gt;
As a last resort, use&lt;br /&gt;
National Instrument's Measurement &amp;amp; Automation Explorer&lt;br /&gt;
to reset the device.&lt;br /&gt;
&lt;br /&gt;
Error in ==&amp;gt; daqdevice.start at 62&lt;br /&gt;
start( daqgetfield(obj,'uddobject') );&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I've restarted my computer to verify that nothing else could possibly be referencing the controller, and I've also verified on the Measurement and Automation Explorer that the device is free.  Does anyone have any suggestions as how I could receive data from my controller?  Your help is appreciated.&lt;br /&gt;
&lt;br /&gt;
-Austin&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427106/427106/matlab-for-daq/</guid>
      <pubDate>Mon, 30 Jan 2012 13:14:42 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>How to show the picture in GUI</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427073/427073/how-to-show-the-picture-in-gui/</link>
      <description>i have problem to convert the coding m.file to m.file for GUI.i cannot understand how to manage my coding in m.file without GUI to m.file in GUI. How can i view the image that i find from my file to axes that i already create to place that picture.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427073/427073/how-to-show-the-picture-in-gui/</guid>
      <pubDate>Sat, 28 Jan 2012 09:57:49 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>How to show the picture in GUI</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427072/427072/how-to-show-the-picture-in-gui/</link>
      <description>i have problem to convert the coding m.file to m.file for GUI.i cannot understand how to manage my coding in m.file without GUI to m.file in GUI. How can i view the image that i find from my file to axes that i already create to place that picture.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427072/427072/how-to-show-the-picture-in-gui/</guid>
      <pubDate>Sat, 28 Jan 2012 09:38:14 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>ANN</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427028/427028/ann/</link>
      <description>Hi&lt;br /&gt;
I have been trained a neural network in Matlab.&lt;br /&gt;
it is training well and when I give inputs it answers well.&lt;br /&gt;
But when i manually solve it i can't reach the answer.&lt;br /&gt;
this is formula:"a1 = tansig(IW{1,1}*p1+b1)&lt;br /&gt;
                 a2 = purelin(a1*LW{2,1}+b2)"&lt;br /&gt;
p1 is input.&lt;br /&gt;
a1 is output of first layer(hidden layer) and a2 is second(output layer) one's output&lt;br /&gt;
b1 is bias of first layer and b2 is bias of second layer.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427028/427028/ann/</guid>
      <pubDate>Thu, 26 Jan 2012 06:07:26 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>ANN</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427023/427023/ann/</link>
      <description>Hi&lt;br /&gt;
I have been trained a neural network in Matlab.&lt;br /&gt;
it is training well and when I give inputs it answers well.&lt;br /&gt;
But when i manually solve it i can't reach the answer.&lt;br /&gt;
this is formula:"a1 = tansig(IW{1,1}*p1+b1)a2 = purelin(a1*LW{2,1}+b2)"&lt;br /&gt;
p1 is input.&lt;br /&gt;
a1 is output of first layer(hidden layer) and a2 is second(output layer) one's output.&lt;br /&gt;
b1 is bias of first layer and b2 is bias of second layer.&lt;br /&gt;
a2 is output.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427023/427023/ann/</guid>
      <pubDate>Thu, 26 Jan 2012 05:01:06 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>ANN (artificial neural network) help needed</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427022/427022/ann-artificial-neural-network-help-needed/</link>
      <description>Hi&lt;br /&gt;
I have been trained a neural network in Matlab.&lt;br /&gt;
it is training well and when I give inputs it answers well.&lt;br /&gt;
But when i manually solve it i can't reach the answer.&lt;br /&gt;
this is formula:"a1 = tansig(IW{1,1}*p1+b1)a2 = purelin(a1*LW{2,1}+b2)"&lt;br /&gt;
p1 is input.&lt;br /&gt;
a1 is output of first layer(hidden layer) and a2 is second(output layer) one's output.&lt;br /&gt;
b1 is bias of first layer and b2 is bias of second layer.&lt;br /&gt;
a2 is output.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427022/427022/ann-artificial-neural-network-help-needed/</guid>
      <pubDate>Thu, 26 Jan 2012 04:57:39 -0800</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>ANN (artificial neural network) help needed</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/427021/427021/ann-artificial-neural-network-help-needed/</link>
      <description>Hi&lt;br /&gt;
I have been trained a neural network in Matlab.&lt;br /&gt;
it is training well and when I give inputs it answers well.&lt;br /&gt;
But when i manually solve it i can't reach the answer.&lt;br /&gt;
this is formula:"a1 = tansig(IW{1,1}*p1+b1)&lt;br /&gt;
                 a2 = purelin(a1*LW{2,1}+b2)"&lt;br /&gt;
p1 is input.&lt;br /&gt;
a1 is output of first layer(hidden layer) and a2 is second(output layer) one's output.&lt;br /&gt;
b1 is bias of first layer and b2 is bias of second layer.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/427021/427021/ann-artificial-neural-network-help-needed/</guid>
      <pubDate>Thu, 26 Jan 2012 04:49:29 -0800</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>
