Text exceeds maximum line length of 25000 characters
1 次查看(过去 30 天)
显示 更早的评论
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.
回答(2 个)
Image Analyst
2015-5-7
Do they show up in the variable editor? Double click the variable name in the workspace to see.
0 个评论
Walter Roberson
2015-5-7
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!