About 4,010,000 results
Open links in new tab
  1. Storing multiple values of output in one variable - MATLAB

    Mar 17, 2018 · I want to generate a plot that shows variation of this variable with an input parameter. To do this I need to first store the values of the output in one variable.

  2. return multiple output variables from Matlab function

    Jan 22, 2015 · If you use {A;B;C} you can display them by adding A=output{1}, B=output{2} and C=output{3} to the end of the code, without semicolons.

  3. How to get multiple outputs from a function? - MATLAB Answers - MATLAB ...

    Jan 10, 2020 · Retrieving two outputs from a function requires two steps. You've performed the first of those steps. Your function definition states that it returns two outputs, the contents of …

  4. 5.6: Functions with Multiple Outputs - Engineering LibreTexts

    Matlab functions can have more than one output variable. For example, max (a) is a built-in function. It can be used as follows: a = [0, 2, -1, 4.2, 2.1, 0.7] With 1 output argument, it …

  5. MATLAB - multiple return values from a function? - Stack Overflow

    Nov 15, 2010 · I'm writing 2 functions in matlab, an initialize function and a function to insert items into an array treating it like a doubly-linked list. However, my initialize function only returns …

  6. Demystifying Functions with Multiple Outputs in MATLAB

    Dec 27, 2023 · Leveraging functions with multiple outputs is a MATLAB best practice for managing variable scope issues and encapsulation. By planning ahead and identifying key …

  7. Write multiple function output in one variable - MATLAB

    Nov 17, 2022 · I'm writing a function ind = myfun (N,k) where i need the coordinates of a single index k. My input is k and the number of elements for every dimension in vector N.

  8. How to Write a MATLAB Function with Multiple Outputs

    Learn how to create a MATLAB function with multiple outputs. This tutorial will show you the steps involved, including how to define the function, specify the input and output arguments, and …

  9. matlab - Save multivariable output from function to vector?

    Apr 15, 2018 · Multiple return values may have different sizes, how do you want to concatenate them into an array? This syntax is allowed : [z(1),z(2),z(3)]=f(); You can use varargout to …

  10. How to store multiple function outputs? - MATLAB Answers - MATLAB

    So I have a function that has one output variable and when I run this function it gives me three different answers which it should but I want to use to use all of the outputs but it only saves the …

  11. Some results have been removed