# Matrix Input

📗 MATLAB format:
(1) Use the "Copy" button (or select-all and copy the text in the text box),
(2) Paste it in MATLAB command window, run, and the matrix will be stored in the "ans" variable.
Example:

📗 Comma separated:
(1) Use the "Download" button (or select-all and copy the text in the text box, paste it in an empty text file), save it as, for example, "mat.txt",
(2) Put the text file in the working directory ("Current Folder"), and
(3) Use the command "load('mat.txt', '-ascii')" (or "readmatrix('mat.txt')"), run, and the matrix will be stored in the "ans" variable.
Example:
Reference: the "load" function Doc and the "readmatrix" function Doc.

# Matrix Output

📗 MATLAB command window:
(1) Select and copy the output without "ans =",
(2) Paste into the text box.
Example: "[1:10; 1:10]"

📗 Save to file:
(1) Use the command "save('mat.txt', 'ans', '-ascii')" (or "writematrix(ans, 'mat.txt')").
(2) Copy and paste of content of "mat.txt" into the text box (or use the "Upload" button next to the text box to upload the text file).
Example (using "save"): "[1:10; 1:10]"
Example (using "writematrix"): "[1:10; 1:10]"
Reference: the "save" function Doc and the "writematrix" function Doc.

📗 MATLAB format:
(1) Use the command "clipboard('copy', ans)" (or "mat2str(ans)" and copy the string inside '...', but without the quotation marks),
(2) Paste into the text box.
Example: "[1:10; 1:10]"
Reference: the "clipboard" function: Doc and the "mat2str" function: Doc.

# Visualizing a Matrix

Matrix:

Operations:
Size: x
Random: [, ]

📗 Heat Map
Color 0: , Color 1:
Plot:



📗 Histogram





📗 Line Plot





# ASCII

String:
ASCII:

ASCII Table: Link





Last Updated: January 21, 2025 at 2:25 AM