Octave Forge is a central location for development of packages for GNU Octave, similar to Matlab's toolboxes. To install a package, use the pkg command from the Octave prompt by typing: pkg install -forge package_name pkg load package_name. MUSC 208 Octave Install Mac MUSC 208 Lab 2 - Macintosh Install Octave software Updated text in bold green font. Install TextWrangler Then from the TextWrangler menu choose Install Command Line Tools Install Octave Macintosh 10.7 10.8 10.9 - Octave 3.6.4 1. Download and Install XCode 5.02 After the install completes you need to install the XCode command line tools from Preferences, Download Tab 2. Install XQuartz 2.7.5 at 3. Install Homebrew Copy this ruby commnd found on the Homebrew page. Open Terminal, paste the ruby command, and type enter. Homebrew should install itself. Continue following the instructions at: You've already done steps 1 and 2. Brew tap homebrew/science brew install octave Do step 4. Brew install gnuplot DO NOT do step 5. Instead do this. 5a) Copy the text of ' into a new TextWrangler document. Save it to the Desktop as playsamples.m. Important: for this next command to work you must have saved playsamples.m to the Desktop. Double check. Execute this command in the Terminal cp ~/Desktop/playsamples.m /usr/local/Cellar/octave/3.6.4/share/octave/site/api-v48+/m 5b) Copy the text of ' into a new TextWrangler document. Save it to the Desktop as octaverc (no.extension) Important: for this next command to work you must have saved octaverc to the Desktop. Double check. Execute this command in the Terminal cp ~/Desktop/octaverc /usr/local/Cellar/octave/3.6.4/share/octave/site/m/startup Do Step 6. Reboot Do Step 7 Test playsamples Open Terminal Type octave. At the octave prompt execute this command TextWrangler should open with a new document. Delete all existing text and copy/paste the following text into musc208ocataveTest.m. SR = 44100; T = 1/SR; f = 440; n = 0: SR-1; nT = n*T; wav = sin( 2 * pi * f * nT ); plot ( wav ( 1: 500 ) ); playsamples( wav ); Save and test. You should hear the sound and see the plot.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |