Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matlab trouble

Subject: Matlab trouble

From: nordmoon

Date: 26 May, 2009 12:37:30

Message: 1 of 2

Hi,

I am working on a program in matlab and suddenly its not functioning good. I am working with very large vectors and I suddenly got a message that the vector was to big when creating a new vector double the size of the previous ones (using conv) and since then I won't plot previous calculations (even if I took away the code that gave this message)? I gives previous working vectors zero values and when I try to create them outside the file it don't work. Smaller vectors goes ok,. but I have created the previous one before without problem until I tried to create a new one with double the size. What can I do to get back and make the previous one function again?

Subject: Matlab trouble

From: Sadik

Date: 26 May, 2009 17:19:02

Message: 2 of 2

You should say

zeros(L,1)

rather than

zeros(L)

since the first one gives you a vector of zeroes of length L whereas the second one gives you a MATRIX of size LxL. I hope this is the problem.

nordmoon <arianadax@gmail.com> wrote in message <32183705.19504.1243341482025.JavaMail.jakarta@nitrogen.mathforum.org>...
> Hi,
>
> I am working on a program in matlab and suddenly its not functioning good. I am working with very large vectors and I suddenly got a message that the vector was to big when creating a new vector double the size of the previous ones (using conv) and since then I won't plot previous calculations (even if I took away the code that gave this message)? I gives previous working vectors zero values and when I try to create them outside the file it don't work. Smaller vectors goes ok,. but I have created the previous one before without problem until I tried to create a new one with double the size. What can I do to get back and make the previous one function again?

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us