This is the first day of the second week.
Here, we went over spacing using the fprintf function and fixed point notation (%f) to create neater columns.
In this exercise, we created two vectors, one containing the group members' respective ages and one containing majors. Then we saved the vectors in a .txt file. Below is a screenshot of the actual .txt file. The letters are shown as numbers according to the ASCII codes.
We finally learned to create m-scripts. The above is code for a context example from last week's lecture.
This is a context example on calculating the velocities and accelerations for UDFs using m-script, the fprintf function, and %f.
A context example calculating the acceleration of Voyager 1 and 2.