Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID


We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

matlab help needed urgently!! regarding length of equation.

lyncheonglyncheong Posts: 2Member
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)

x=[1 0 0 0 0 0 0];
for n=7:length(x)+6

but when i continued on with
d= zeros(1,N);
>> x=d;
>> stem(n,y)

i got an error code saying
??? Error using ==> stem at 44
X must be same length as Y.

how do i fix this problem?
Sign In or Register to comment.