Back to quiz

6. which is not a use for the solve function

  • rearanging the equation for a particular variable
  • solving a numeric equation
  • solving symbolic equation
  • solve a set of simultaneous equations

7. whats not a reason for writing a user defined function

  • readability
  • code runs faster
  • portability
  • reliability

8. which is not a type of 3D plot

  • 3plot
  • mesh
  • surface
  • pseudo

9. whats simulink useful for

  • creating an interface for the code so the user to interact with
  • solving differential equations
  • plotting real time data
  • writing matlab code in labview

10. y=(ax+b) how would you replace a in the expression y with the value 3

  • subs (y,3)
  • a=3
  • sub(y,a,3)
  • subs a=3

11. what returns from the function nargin

  • number of symbolic variables
  • the number of global variables
  • the number of inputs in a function
  • the number of local variables

12. what occurs when 'break' is placed in a loop

  • jumps out of a loop
  • goes back to the start of a loop without executing commands
  • ends the currently running function or code

13. what is not a reason for using the mathscript node rather than standard labview

  • acess to larger number of functions
  • quicker to type in equations than using function blocks
  • the code runs faster
  • easier to read flow of data

14. what function clears the workspace

  • clr
  • clear
  • clc

15. how would you change a value in matrix z in the second row and third column to the value

  • z(3,2)=6
  • z(2,3)=6
  • 6=z(2,3)
  • z=[2,3]

16. what occurs when 'continue' is placed in a loop

  • jumps out of a loop
  • goes back to the start of a loop without executing commands
  • ends the currently running function or code

17. how do you call this function, function y=test_ball (x,c)

  • b=test_ball [x,c]
  • [y]=test_ball (v,y)
  • y=test_ball (x,c)
  • y=testball (x,c)

18. when using ezplot for symbolic plotting whats the automatic range

  • 0-pi
  • -2pi to 2pi
  • 0-2pi
  • -pi to pi

19. do local functions appear in the workspace?

  • no
  • yes

20. what is this symbol used for...'

  • change a value in a matrix
  • transpose a matrix
  • create a new line in a matrix