Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Problem with MATLAB. Text exceeds maximum length.

  1. Jul 4, 2011 #1
    I am using MATLAB to model gravity of an irregular body. While displaying the answer,however, MATLAB displays this message.

    " Text exceeds maximum line length of 25,000 characters for Command Window display"

    Is there any way to subvert this maximum length?

    Thank You
  2. jcsd
  3. Jul 4, 2011 #2
    what exactly are you doing? when does this happen? are you outputing stuff to standard output (screen)? are you bothering to insert new-line characters every so often? have you try to NOT output to a Command Window and instead simply write to a file?
  4. Jul 4, 2011 #3
    @gsal I wrote a m-file that returns a polynomial of x,y and z. On executing the m-file I get a polynomial that is very long(the length is not an error. it is expected). But the problem is that the returned polynomial is so long that the matlab window is unable to display the whole polynomial. A part is displayed . On horizontally scrolling to the end , I find the aforementioned message from matlab.

    I wanted to know if it was possible ,somehow, to display the whole polynomial.
  5. Jul 4, 2011 #4
    like I said, do not try to display in any way...see if you can just write to a file, instead.
  6. Jul 4, 2011 #5
    Thanks a lot gsal..i will try that.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Problem MATLAB Text Date
I A problem in combinatorics Jan 17, 2018
B Optimisation problem Jan 11, 2018
Matlab transfer function problem Oct 11, 2013
MATLAB problem Apr 27, 2010
Some Matlab technical programming problem Jul 17, 2009