Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get the code of functions in Matlab?

Tags:

matlab

I am wondering if we - the Matlab users can get the code of some functions in Matlab (like fft - fast fourier transform, dwt - descrete wavelet transform, and so on.) Just in case we want to edit something to adapt with what we need. Is it possible in Matlab? and if so, how can we get the code? Thank you.

like image 219
John Avatar asked Aug 31 '12 09:08

John


People also ask

Can you call a function in a script MATLAB?

You call the function just like you would call it from the command line or from another function. There is no difference in the syntax. Are you trying to have the function code in the same file as the script code?

What is =~ in MATLAB?

It means not equal to as you say. It doesn't have any other meaning in MATLAB. The ~ by itself has meaning. It can be used to not return certain outputs from a function.

How do you write a function in a MATLAB script?

To create a script or live script with local functions, go to the Home tab and select New Script or New Live Script. Then, add code to the file. Add all local functions at end of the file, after the script code. Include at least one line of script code before the local functions.


1 Answers

Type "edit function.m" (without quotes), where "function" is the name of the function with the code you wish to view.

Read more: http://www.ehow.com/how_8465386_matlab-function-codes.html#ixzz2wILKOXJI

like image 136
CyberPlayerOne Avatar answered Oct 13 '22 11:10

CyberPlayerOne