(3) If a plot command uses only one vector as an input argument, what does it us
ID: 3732233 • Letter: #
Question
(3) If a plot command uses only one vector as an input argument, what does it use as the "ordered pair to make the plot? TIF Variable names used in one function can be used in another function and both variables w the same value and will update according to the function that is currently using that variabi /F Function returns can be assigned to variables in the workspace. T/F Values passed to a function argument must be variables from the workspace. Parenthesis following a name are used to indicate one of two things. These are: One word each is enough A function with two independent variables (one dimensional vectors) will use the function to facilitate the matrix solution. Cross out the variables names that are not acceptable according to MatLab (not Prof. Finne ThisTestlsNotSoHaro TheFirst4QuizesWereHard Quiz 4 1st Test long.variable namesare OK but may be dificult. to read X.Explanation / Answer
Solution:
plot(Y) creates a 2-D line plot of the data in Y versus the index of each value.
If Y is a vector, then the x-axis scale ranges from 1 to length(Y).
If Y is a matrix, then the plot function plots the columns of Y versus their row number. The x-axis scale ranges from 1 to the number of rows in Y.
If Y is complex, then the plot function plots the imaginary part of Y versus the real part of Y, such that plot(Y) is equivalent to plot(real(Y),imag(Y)).
So plot(sin(x)) is equivalent to plot(1:length(x),sin(x)) but not plot(x,sin(x))
3)
True
Variables in the called function can access the same name variable in the parent function.
True
True
Indexing or function arguments.
Matrix function
1st_Test
63 size of length is allowed in matlab for identifier declaration
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.