Text exceeds maximum line length of 25000 characters

1 visualización (últimos 30 días)
saeed hasani
saeed hasani el 7 de Mayo de 2015
Respondida: Walter Roberson el 7 de Mayo de 2015
Hi I have written some codes in Matlab, some parameters (which have symbolic values) are calculated by that mfile. Since their length is more than 25000 character, command window doesn't show them completely. Would you please help me how to access these values? I used this code for apart:
numop = feval(symengine, 'nops',sol2)
ops = cell(1,numop+1)
for K = 0 : numop
ops{K+1} = feval(symengine, 'op',sol2, K)
end
but I answered:
ops =
Columns 1 through 4
[1x1 sym] [1x1 sym] [1x1 sym] [1x1 sym]
Columns 5 through 8
[1x1 sym] [1x1 sym] [1x1 sym] [1x1 sym]
Columns 9 through 12
[1x1 sym] [1x1 sym] [1x1 sym] [1x1 sym]
Columns 13 through 16
[1x1 sym] [1x1 sym] [1x1 sym] [1x1 sym]
Columns 17 through 19
[1x1 sym] [1x1 sym] [1x1 sym]
please help me what can I do? please answer immediately. matlab2012a Best regards.

Respuestas (2)

Image Analyst
Image Analyst el 7 de Mayo de 2015
Do they show up in the variable editor? Double click the variable name in the workspace to see.

Walter Roberson
Walter Roberson el 7 de Mayo de 2015
You can still access the values. You just can't display them at all easily. You can display the ops one at a time; if an individual op is too large then you can display its ops one at a time, and so on.
I have to wonder what you are going to do with pages and pages and pages of output of the symbolic expression.
If you have a deep need to write the results to a file for future processing, then you can use write() from inside the symbolic engine, using feval() or evalin(). See MuPad's write . For emphasis, this needs to be done at the MuPad level, not at the MATLAB level.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by