We learned how to set up our Desktop on the CAD Lab computer. We created a Matlab shortcut on the Desktop and a CE199 folder for our work. We also learned to type some basic Matlab commands. An IDE allows you to enter commands, edit scripts and function files, execute and debug your code, inspect variables, etc. Command Window is also used to enter the command directly into Matlab interpreter. Samples of CLI commands:
» 5+6*3-3
ans = 20
First, we should learn the basic concepts and commands through command line mode. In this task, we learn more arithmetic problems and solve the debugging equations. We analyze the arithmetic results with or without eps function. Then we study the accuracy of the results.
» power(sqrt(2),2)-2
ans = 4.4409e-016
In our manual calculation for the above equation, we get zero. Here we get the accuracy of the results of
(2^(1/2))^2 -2.