## FreeMat : How different is it from Octave?

In short, both GNU Octave and FreeMat are open-source alternatives to MATLAB. However, Octave is more mature and has wider community support. I also found this interesting article that compares MATLAB, Octave, FreeMat and SciLab. It does point out a few issues against FreeMat: It doesn’t support some functions (such as kron and pcg). It has limited 3-D graphics capabilities …

## Difference between disp and fprintf

For disp, it displays the value of variable. For example Another example. Note, ‘example’ can be seen as a variable Reference: https://www.mathworks.com/help/matlab/ref/disp.html For fprintf, if you are talking about displaying to the screen, the format is fprintf(formatSpec,A1,…,An) formats data and displays the results on the screen. The difference to disp is that it doesn’t display …

## First differences filter

First, you should read up on Matlab’s documentation of the filter function. If you just want to take a first difference, what you’re looking to generate is the series: Which corresponds to the vector a = 1, and b = [1, -1], so your Matlab code would look like:

## Python basemap module impossible to import

I was facing this issue and I was able to solve it using anaconda After activating my profile

## What does the MATLAB error “scalar structure required for this assignment” refer to in this statement?

You are creating a 1×5 struct array. To quote the struct documentation: If value is a cell array, then s is a structure array with the same dimensions as value. Each element of s contains the corresponding element of value. Since the second argument in the expression struct( ‘Ps’, cell( 1, length(Ps) ) ) is …

## What is the default MATLAB Color Order?

Good question! There is a default colour order for MATLAB. Take note that versions before R2014b, the default colour order for MATLAB uses the jet colour map. In the jet colour map, the first plot is blue, followed by the second plot being green. For versions after R2014b, this follows the parula colour map, where …

## How to add \ before all special characters in MATLAB?

I am trying to add ‘\’ before all special characters in a string in MATLAB, could anyone please help me out. Here is the example: I want this string to be changed to:

## Add custom legend without any relation to the graph

This is how I have solved this problem in the past: This will plot the additional points, but because the coordinates are at NaN they will not be visible on the plot itself: EDIT 26/10/2016: My original answer results in greyed out legend entries in 2016b. The updated code above works, but the answer below …

## how to draw a slope field in matlab

so here is the equation: That is the code, which will help to do the job: It is also possible to use the package dfield. You can read it here. But I have not tested it for myself