How to print the command window results on the MATLAB Online program.

12 ビュー (過去 30 日間)
Cameron
Cameron 2025 年 3 月 26 日
編集済み: Avni Agrawal 2025 年 4 月 4 日
After I run a program on the MATLAB Online application, how do I print what shows in the command window? Usually on the desktop app I can right click on the command window to do this. I would like to save the results as a pdf or print it via a printer. Thank you in advance for the help!
  1 件のコメント
Cris LaPierre
Cris LaPierre 2025 年 3 月 26 日
編集済み: Cris LaPierre 2025 年 3 月 26 日
I don't know of a way to print this directly. One approach might be to use the diary feature (see here). Once turned on, MATLAB captures everything typed or outputted in the Command Window into the specified file. You can then download and print this file.

サインインしてコメントする。

回答 (1 件)

Avni Agrawal
Avni Agrawal 2025 年 4 月 2 日
編集済み: Avni Agrawal 2025 年 4 月 4 日
To print or save the Command Window output in MATLAB Online, there is no direct in-built function currently available.
However, you can use this approach as a workaround:
1. Copy the Output:
  • Select the text in the Command Window.
  • Right-click and choose "Copy" or press `Ctrl+C` (Cmd+C on Mac).
2. Paste into a Document:
  • Open a text editor (e.g., Word, Google Docs).
  • Paste the text using `Ctrl+V` (Cmd+V on Mac).
3. Save or Print:
  • Save the document as a PDF or use the "Print" option to print it.
I hope this helps!

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by