This is because MATLAB does arithmetic with double-precision numbers, which are only accurate to 15 places. Of course, but MATLAB gave the numerical answer (in scientific notation). ![]() MATLAB recognizes sin as the sine function and pi as the number. MATLAB should type in response something like: ans = 1.2246e-016 In this way you can use MATLAB as a calculator. ![]() Position your mouse there and typeĪnd hit Enter. In the command window you should see a prompt that looks like >. In the toolbar, change the Current Directory to the directory or folder where you want to save your work. ![]() (The function of the other windows is explained in Chapter 3 of A Guide to MATLAB® for Beginners and Experienced Users, second edition, by Hunt, Lipsman and Rosenberg.) You should see the MATLAB Desktop which includes several windows, the most important of which is the MATLAB Command Window.
0 Comments
Leave a Reply. |