Assume that the following user-defined function is available in Matlab:   function [d, e] = someFunction(a, b, c)        d = 2 * b * c;        e = 3 * d; end   If the following Matlab expression    >> [varA, varB] = someFunction(2, 3, -2);   gets executed in Command Window (and the program control flow is transferred to the someFunction function), which variables will be created / updated in main Workspace?     varA and varB     d and e     a, b, and c     None

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.1: Addresses And Pointers
Problem 7E
icon
Related questions
Question
  1. Assume that the following user-defined function is available in Matlab:

     

    function [d, e] = someFunction(a, b, c)

           d = 2 * b * c;

           e = 3 * d;

    end

     

    If the following Matlab expression 

     

    >> [varA, varB] = someFunction(2, 3, -2);

     

    gets executed in Command Window (and the program control flow is transferred to the someFunction function), which variables will be created / updated in main Workspace?

       

    varA and varB

       

    d and e

       

    a, b, and c

       

    None

Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning