The matlab command line window results are incompletely displayed, the analytical expression is too long, and the output is incomplete. Solution

1. Background

When running the matlab program, sometimes the output result is too long, and the command line window cannot be fully displayed no matter how large it is. The copied result will also have... instead of the complete result, as shown in the following figure:
Insert image description here
Double-click the copy result to display as follows:
y: (25exp(-8x) (10exp(8x) - 9))/9 - ((16exp (-5x))/9 - (40xexp(-5x))/3…

2. Solution to incomplete display of results in the matlab command line window

In fact, all the running results and intermediate variables of matlab will be saved to the workspace on the right. By reading the program carefully, you can see which variable the result is.
Insert image description here

Here I assign the results to sol. Just click sol in the workspace on the right to open the command line and display incomplete results.

% 显示解
disp('解:');
disp(sol);

Insert image description here
Summary: It’s important to use your brain to think about the reasons.

Guess you like

Origin blog.csdn.net/Time_Memory_cici/article/details/134335931