You are on page 1of 1

METHOD TO GENERATE M FILE:

1. Open the mat lab window and go on the file option in the menu bar 2. To open the editor window type edit filename in command window or click on new and further on script to open the new editor window where the program is to be written. 3. Depending upon the program if it require user input then command window will get open and ask for the input values. 4. If the values in program are predefined then the command window will not open. 5. Then after writing the program save the program by going to save option in file with .m extension or otherwise the program is stored with .m extension by default. 6. Then execute the program by clicking on run in debug option of the menu bar or by pressing F5 or by clicking run icon on the tool bar 7. After the program execute successfully, we get plot of the waves in figures.

You might also like