Author Archives: chinny12

function Handles

Function Handles A function handle is a MATLAB value that provides a means of calling a function indirectly. You can pass function handles in calls to other functions (often called function functions). You can also store function handles in data … Continue reading

Posted in Matlab | Leave a comment

COmparing Handle and Value Classes

Comparing Handle and Value Classes Why Select Handle or Value MATLAB support two kinds of classes — handle classes and value classes. The kind of class you use depends on the desired behavior of the class instances and what features … Continue reading

Posted in Matlab | Leave a comment

Overloaded MATLAB Functions

Overloaded MATLAB Functions An overloaded function is an additional implementation of an existing function that has been designed specifically to handle a certain data type. When you pass an argument of this type in a call to the function, MATLAB … Continue reading

Posted in Uncategorized | Leave a comment

M file programming III Subfunctions

1. Subfunctions Function M-files can contain code for more than one function. The first function in the file is the primary function, the function invoked with the M-file name.Additional functions within the file are subfunctions that are only visible to the primary … Continue reading

Posted in Matlab | Leave a comment

Programming M files II

1.  How Functions Work      You can call function M-files from either the MATLAB command line or from within other M-files. Be sure to include all necessary arguments, enclosing input arguments in parentheses and output arguments in square brackets.    … Continue reading

Posted in Matlab | Leave a comment

M file programming

1. Matlab enables you to write a series of commands in a file and the execute them with a single command. We can wirte our own matlab statements / program in an ordinary file, and give the file tthe name … Continue reading

Posted in Matlab | Leave a comment

Controls tutorial for matlab

PID TutorialIntroduction The three-term controller The characteristics of P, I, and D controllers Example Problem Open-loop step response Proportional control Proportional-Derivative control Proportional-Integral control Proportional-Integral-Derivative control General tips for designing a PID controller Key Matlab Commands used in this tutorial … Continue reading

Posted in Matlab | Leave a comment

Matlab Interview questions links

try this: http://www.globalguideline.com/interview_questions/Questions.php?sc=MATLAB_Interview_Questions_and_Answers&page=2 http://www.globalguideline.com/interview_questions/Questions.php?sc=MATLAB_Interview_Questions_and_Answers 1. What can we use Matlab for? 1. Simple calculations 2. Plotting and analyzing mathematical relationships (2D and 3D) 3. List & Matrix Operations 4. Writing script files (a type of programming) 5. Symbolic manipulation of … Continue reading

Posted in Matlab | Leave a comment

Systems

1. A Continuous system is a system that may be represented using differential equations 2. A discrete system is represented using difference equations 3. A hybrid system contains continuous and discrete components. A typical hybrid system would consist of a … Continue reading

Posted in Simulink | Leave a comment

loopsens – Sensitivity functions of plant-controller feedback loop

loopsens – Sensitivity functions of plant-controller feedback loop Syntax loops = loopsens(P,C) Description loops = loopsens(P,C) creates a struct, loops, whose fields contain the multivariable sensitivity, complementary and open-loop transfer functions. The closed-loop system consists of the controller C in … Continue reading

Posted in Matlab | Leave a comment