IndexableFunction is a class of function-handle-like objects that allow a function to be called and post-indexed in a single expression. Often, in the MATLAB Central NG, I've seen people ask whether it is possible to call functions with a syntax like y=func(arg)(i) as an alternative to doing, z=func(arg); y=z(i); Essentially, the answer is no. Standard MATLAB syntax does not allow this. However, the...
This function calculates the fresnel cosine and sine integrals.Input:
y = values for which fresnel integrals have to be evaluated
Output: FresnelC = fresnel cosine integral of y FresnelS = fresnel sine integral of...
Fresnel sine and cosine integrals should be done with quadl matlab function.
Simple 1KHz Audio Function Generator Using Standard Python In Linux - afg.py
This code is a stand alone program to generate a signal, at the earphone sockets, of 1KHz. It is a basic audio signal generator and can be used as a...
The Velleman PCSGU250 is a combination 2-channel oscilloscope and function generator. This MATLAB Support package allows you to: * configure scope properties such as triggers and time range * retrieve waveforms from the scope *...
Gabor-function convolution masks are increasingly used in image processing and computer vision. This function simply computes the cosine and sine masks for a given width, period and orientation. The masks returned are properly normalised. ...
M Published file explain cordic algorithm with a function to get trigonometrics function Sine and Cosine.
The same work was presented using Simulink, those works complement each other.
General hash function algorithm implementations for series of commonly used additive and rotative string hashing in the object pascal programming language.For more information please visit:http://www.partow.net/programming/hashfunctions/index.html
This recipe is a simple solution for turning a recursive function into a non-recursive function.
This is a hack to get around the read-only nature of __closure__ on function objects. Watch your step!
Please note that the present is a fork of the recipe 577283 "Decorator to expose local variables of a function after execution" of Pietro Berkes, available at...
I present a method of computing the 1F1(a,b,x) function using a contour integral. The method is based on a numerical inversion, basically the Laplace inversion. Integral is 1F1(a,b,x) = Gamma(b)/2\pi i \int_\rho exp(zx)z^(-b)(1+x/z)^(-a)dz, \rho...
The recipe presents a function overloading decorator in python that do type check. The type signature is marked with the @takes and @returns decorator, which causes the function to raise an InputParameterError exception if called with...
The recipe presents a simple decorator for function overloading in python. The @overloaded function searches for the first overloads that doesn't raise TypeError when called. Overloads are added to the overloads list by using the...
In some cases it may be desirable to parse the string expression "f1(*args)" and return some of the key features of the represented function-like call.
This recipe returns the key features in the form of a namedtuple....
This script allows you to graph any function you enter on the scale of your choice, assuming you use the correct javascript syntax.
For example, to use Cos x, use Math.cos(x). Or, for x^2, use Math.pow(x, 2), etc.
This simple m-file plots the Soft Handover probability as a function of the Soft Handover Threshold value used in the UTRA Soft Handover Algorithm. The relationship has been dertived by taking the ratio between the Cell area where Soft Handovers...
VIDEO TUTORIAL: Serial communication (TX and RX) using SERIAL Matlab function. For Bluetooth and RS-232 devices applications. (Narration in Spanish).
Comparison with fft function is also shown.
To use this function just define a variable say var, var = pnseq(a, b, c); for a, b and c refer to the zip file |