About 10,300,000 results
Open links in new tab
  1. matlab - What is a function handle and how is it useful ... - Stack ...

    Apr 28, 2009 · The function handle operator in MATLAB acts essentially like a pointer to a specific instance of a function. Some of the other answers have discussed a few of its uses, but I'll add …

  2. How to fix 'Undefined Function or Variable' in matlab?

    There are multiple approaches passing constants to MATLAB functions Defining variables as global is a simple solution. Using global makes the variable "visible" to all functions and scripts. The downside …

  3. How can I index a MATLAB array returned by a function without first ...

    However, MATLAB complains about Unbalanced or unexpected parenthesis or bracket on the first parenthesis before the 3. Is it possible to read values from an array/matrix without first assigning it to …

  4. How do I make a function from a symbolic expression in MATLAB?

    Oct 24, 2016 · If you are writing a program to find zeros, it will be enough using eval(f) when you have to evaluate the function. When using a Matlab function to find zeros using anonymous function will be …

  5. Size function in matlab - Stack Overflow

    Dec 25, 2011 · As you know, matlab deals mainly with matrices. So, the size function gives you the dimension of a matrix depending on how you use it. For example: 1. If you say size(A), it will give you …

  6. Matlab function return value - Stack Overflow

    function result = functionA(N,alpha) result = 5; return end The second part is to create another Matlab file (i.e. upto you to name it) or you can use the Matlab command window even. Then run the …

  7. How to use `feedback` function in Matlab? - Stack Overflow

    Feb 9, 2020 · 2 Matlab's feedback function is used to obtain the closed loop transfer function of a system. Example: sys = feedback(sys1,sys2) returns a model object sys for the negative feedback …

  8. How can I apply a function to every row/column of a matrix in MATLAB ...

    May 5, 2017 · You can apply a function to every item in a vector by saying, for example, v + 1, or you can use the function arrayfun. How can I do it for every row/column of a matrix without using a for loop?

  9. return multiple output variables from Matlab function

    Jan 22, 2015 · Matlab function outputs are in cell format, so you can define a cell data with the size same as the function output and use it as a single variable to store all the outputs in a more …

  10. How to get derivative of a function in MATLAB? - Stack Overflow

    Mar 20, 2012 · To obtain the derivative of a polynomial, which is itself a polynomial, use Matlab's polyder() function. This takes the standard representation of the polynomial coefficients as a vector, …