Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume you have the following code for the calcCir user - defined function: function circumference = calcCir ( rad ) circumference = 2 * pi
Assume you have the following code for the "calcCir" userdefined function:
function circumference calcCirrad
circumference pirad;
end
You also have the following script using the "calcCir" function:
myvec :;
cvec calcCirmyvec;
plotmyvec, cvec, 'blue
titleCircumference of a circle x as compared to its radius y
ylabelradius
xlabelcircumference
What is wrong with the function?
I.The function calcCir can only be used for scalars. For use with vectors, must be changed to
IIIn the script, 'blue must be changed to b
III.The semicolon in the calcCir function should be deleted
IVYou should specify the title, x label, and y label of a plot before you create it
VThe x and y axis labels are swapped around
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started