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:
m file length limit?

Subject: m file length limit?

From: youngjin

Date: 3 Jun, 2011 18:52:57

Message: 1 of 3

Hello,

I have trouble with making an m-file for dynamic equation of a
system.
The equation that I got from Maple (a program like Mathmatica) is very
very long, it is actually not just one equation, but thousands of
equations. I tried to copy and paste them from Maple window to m file
editor screen and did 70% of all equations. But for some reason I
cannot paste it in the m-file any more. I tried to do it for a new m
file, it worked. But for the m-file that I already pasted the
equations, it doesn't. So, I am thinking that there might be any
limitation on one m-file's length or size (???). Is that true? Or I am
missing something? Can anyone let me know why it happened and how to
fix it? Thank you.

Subject: m file length limit?

From: Nasser M. Abbasi

Date: 3 Jun, 2011 19:15:00

Message: 2 of 3

On 6/3/2011 11:52 AM, youngjin wrote:
> Hello,
>
> I have trouble with making an m-file for dynamic equation of a
> system.
> The equation that I got from Maple (a program like Mathmatica) is very
> very long, it is actually not just one equation, but thousands of
> equations. I tried to copy and paste them from Maple window to m file
> editor screen and did 70% of all equations. But for some reason I
> cannot paste it in the m-file any more. I tried to do it for a new m
> file, it worked. But for the m-file that I already pasted the
> equations, it doesn't. So, I am thinking that there might be any
> limitation on one m-file's length or size (???). Is that true? Or I am
> missing something? Can anyone let me know why it happened and how to
> fix it? Thank you.

Nothing to do with .m limit. there is no limit. it is just a text file,
you have it as large as the amount of ram you have. try to open
a plain textfile on your system (notepad.exe on windoz or plain text file
on linux using say vo or emacs), and try the same thing, you'll most likley
have the same problem.

copying from maple frontend is always a problem, speically the new notebook
interface.

Better to save your maple notebook to text file, if the copy/paste by
mouse do not work, and go from there.

--Nasser

Subject: m file length limit?

From: youngjin

Date: 6 Jun, 2011 15:37:18

Message: 3 of 3

Thank you for answer. I will try it.


On Jun 3, 3:15 pm, "Nasser M. Abbasi" <n...@12000.org> wrote:
> On 6/3/2011 11:52 AM, youngjin wrote:
>
> > Hello,
>
> > I have trouble with making an m-file for dynamic equation of a
> > system.
> > The equation that I got from Maple (a program like Mathmatica) is very
> > very long, it is actually not just one equation, but thousands of
> > equations. I tried to copy and paste them from Maple window to m file
> > editor screen and did 70% of all equations. But for some reason I
> > cannot paste it in the m-file any more. I tried to do it for a new m
> > file, it worked. But for the m-file that I already pasted the
> > equations, it doesn't. So, I am thinking that there might be any
> > limitation on one m-file's length or size (???). Is that true? Or I am
> > missing something? Can anyone let me know why it happened and how to
> > fix it? Thank you.
>
> Nothing to do with .m limit. there is no limit. it is just a text file,
> you have it as large as the amount of ram you have.  try to open
> a plain textfile on your system (notepad.exe on windoz or plain text file
> on linux using say vo or emacs), and try the same thing, you'll most likley
> have the same problem.
>
> copying from maple frontend is always a problem, speically the new notebook
> interface.
>
> Better to save your maple notebook to text file, if the copy/paste by
> mouse do not work, and go from there.
>
> --Nasser

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