What are these functions doing exactly?

Trying to create my own code instead of using existent functions; such as, 'sensorsig(pos,Nsamp,angs,noisePwr)' . what the function's algorithm and how it works? Thanks in advance

4 Comments

I assume you read the documentation. What parts did you not understand?
I don't have the required toolbox so I can't tell you whether
edit sensorsig
will show all the innards of the function, but it's worth a shot.
Please DON'T tell people to edit these functions. That far too often creates a bug, because someone accidentally modifies MathWorks functions by mistake, then saves it without realizing they did so!
Instead, teach them to use type. Type displays the function in the command window. The command window is scrollable, so it has entirely sufficient functionality to see exactly what is in the function, and never any chance of creating a bug.
type sensorsig
Point taken. Listen to John.
@John: You can prevent the accidental editing by running Matlab without Admin privileges. Then the files in Matlab's toolboxes cannot be overwritten. For convenience I allow the users to modify toolbox\local\pathdef.m only

Answers (0)

This question is closed.

Asked:

on 3 Aug 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!