Locate your Sublime Text 2 Packages directory by using the menu item Preferences -> Browse Packages. The package will be installed and ready for use.
#GNU OCTAVE INSTALL#
Go to Preferences –> Package Control –> Add Repository –> then type into the textbox Īfter doing this, then go to: Preferences –> Package Control –> Install Package –> then search GNU Octave Completions and click it. Important: You need to have Package Control installed first on your sublime text which can be found at The Package Contol Website. Note: For best result, you can disable Matlab Completions (if installed) so that only the GNU Octave completion suggestions would show up in the completion lists. Important: You need to have Package Control installed first on your sublime text which can be found at The Package Contol Website It may also be used as a batch-oriented language. It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. Note: For best result, you can disable Matlab Completions(if installed) so that only the GNU Octave completions would show up in the completion lists. GNU Octave is a high-level language, primarily intended for numerical computations.
#GNU OCTAVE HOW TO#
If you still don't understand how to use it. Just type the words and the completion suggestions should show up. GNU Octave is a Scientific Programming Language mathematics-oriented syntax with built-in plotting and visualization tools and is is licensed under the GNU. With these tools, you can use Python to plot and analyse data.This Sublime text package gives method completion suggestions for GNU Octave. Most likely you have several scientific Python libraries installed, such as SciPy and NumPy components (in particular, Matplotlib). Plot(c) Using Python as an alternative to Octave and Matlab Generating an I/Q plot (x-axis I, y-axis Q) can be done using: To plot I and Q separately over time, graph each component separately: You can install GNU plot from source or using the Ubuntu repository: To plot data using octave, it is easiest to do with gnuplot. To read this data, first use read_short_binary() and then split it into a two dimensional vector: ' _'read_short_binary()_: gr.sizeof_shortįor example, after capturing 64-bit complex using gr.file_sink(gr.sizeof_gr_complex, "capture.dat") in a Python script:ĭata captured directly from the USRP is stored as 32-bit complex, rather than 64-bit complex (gr.sizeof_gr_complex). ' _'read_float_binary()_: gr.sizeof_float ' _'read_complex_binary()_: gr.sizeof_gr_complex Each method takes a filename as the first parameter, and an optional second parameter which is the number of items to read from the file: You want to use one of the following methods, based on the size parameter used in gr.file_sink().
These help you read data that you may have dumped to disk using gr.file_sink( size, filename).
Ensure that you have added the GNU Radio script path to your octave path, as described in the installing guide. To parse data output from GNU Radio, the easiest thing to do is use the provided scripts. If you check out the GNU Radio trunk to /home/username/gnuradio/, you can add the following to ~/.octaverc:Īddpath("/home/username/gnuradio/gr-utils/octave") Parsing Data This is easily done using your local ~/.octaverc configuration file.
To use the GNU Radio octave scripts, you must add the path to your Octave path variable. Installing Octave can be done from source, or in Ubuntu using:
#GNU OCTAVE CODE#
Matlab is a closed source tool, and very expensive-but if you already have it installed, you might prefer it to Octave. GNU Octave is an official GNU project (hence, the GNU prefix), and the source code is released under the GNU General Public License (GPL).
Finally, note the inconsistence of thinking of the condition of an if statement as being equivalent to all(X(:)) when X is a matrix. Octave is the most popular analysis tool with GNU Radio, as the GNU Radio package includes its own set of scripts for reading and parsing output. Also Matlab requires the operands of & and to be scalar values but Octave does not (it just applies the rule that for an operand to be considered true, every element of the object must be nonzero or logically true).