<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'matlab help needed urgently!! regarding length of equation.' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'matlab help needed urgently!! regarding length of equation.' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 12:56:25 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 12:56:25 -0700</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>matlab help needed urgently!! regarding length of equation.</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/430050/430050/matlab-help-needed-urgently-regarding-length-of-equation/</link>
      <description>Hey guys, I urgently need help on my codes. I'm suppose to create a code where the output sequence y(n) is the same as the length of the input sequence x(n)&lt;br /&gt;
&lt;br /&gt;
yy(7:length(x)+6)=0;&lt;br /&gt;
x=[1 0 0 0 0 0 0];&lt;br /&gt;
N=length(x);&lt;br /&gt;
xx(7:length(x)+6)=x;&lt;br /&gt;
yy(7:length(x)+6)=0;&lt;br /&gt;
for n=7:length(x)+6&lt;br /&gt;
yy(n)=0.0011*xx(n)+0.00632*xx(n-1)+0.00158*xx(n-2)+0.0210*xx(n-3)+0.0158*xx(n-4)+0.0063*xx(n-5)+0.0011*xx(n-6)+2.9785*yy(n-1)-4.1361*yy(n-2)+3.2598*yy(n-3)-1.5173*yy(n-4)+0.3911*yy(n-5)-0.0434*yy(n-6);&lt;br /&gt;
end&lt;br /&gt;
y=yy(7:length(x)+6);&lt;br /&gt;
&lt;br /&gt;
but when i continued on with&lt;br /&gt;
N=1024;&lt;br /&gt;
n=1:N;&lt;br /&gt;
w=(2*pi*n/N);&lt;br /&gt;
d= zeros(1,N);&lt;br /&gt;
d(1)=1;&lt;br /&gt;
&amp;gt;&amp;gt; x=d;&lt;br /&gt;
&amp;gt;&amp;gt; stem(n,y)&lt;br /&gt;
&lt;br /&gt;
i got an error code saying&lt;br /&gt;
??? Error using ==&amp;gt; stem at 44&lt;br /&gt;
X must be same length as Y.&lt;br /&gt;
&lt;br /&gt;
how do i fix this problem?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/430050/430050/matlab-help-needed-urgently-regarding-length-of-equation/</guid>
      <pubDate>Thu, 01 Nov 2012 13:03:37 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>