How to show the output on the right side of the coding pane?
조회 수: 20 (최근 30일)
이전 댓글 표시
Please help to show the result on the right side as bottom image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1719576/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1719581/image.png)
댓글 수: 0
채택된 답변
Ayush Modi
2024년 6월 21일
Hi Asuka,
Outputs are generated on the right side of the code panel in 'Live Editor' which is what you are using in the second image.
To generate the output in the same manner, save the file 'untitled3.m' (from the image one) as a .MLX file and run it.
Refer to the following MathWorks documentation for more information on 'Live Editor':
댓글 수: 0
추가 답변 (1개)
Animesh
2024년 6월 21일
Hi Asuka,
The image first image you attached is a plain MATLAB script (.M file), which is supposed to contain multiple sequential lines of MATLAB commands and function calls. And the the second image attached is a MATLAB live script (.MLX file).
In case, you would want to show the result on the right side as shown in the second image, consider using .MLX file for your code. With live scipts you can even choose to display the results in other different orientations.
For more information on live scripts in MATLAB, consider going throught the following link:
I hope this helps!
Animesh
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!