How  Edit Your Work.

1. When you type diary LAB1.text, matlab will  open a file and calls it LAB1.text. If the file already exits, MATLAB will reopen it and writes whatever you type at the end of the file.
2. You can  not edit this file from the matlab session. You must open it using an edditor, like "pico".
3. To see and edit LAB.text you need to exit MATLAB( or open a new terminal)  and type  pico  LAB1.tex.

a) Here is how you can open a file using pico
b) Here is how it looks  A pico window

NOTES:

1.) If you open a file with Pico you CAN NOT use MATLAB commands there, you can only type or delete usning the key board.
2.) When in a MATLAB session, and your diary is LAB1.tex, you CAN NOT edit LAB1.tex unless you type diary off and use pico to open it.
3.) The last two line of the window shows the  commands used in pico.
WHAT NOT to do

To save after changes  hold the ctrl key and prss O,  then you will see
Press enter to confirm the name or change it.

To exit  pico hold the ctrl key and prss X,  then you will see