Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
flowchart
Polymorphism
Home
Questions
Questions
Study lists
roba younis Questions
2249 Questions
There is a built-in function function called cellfun that evaluates a function for every element of a cell array. Create a cell array, then call the cellfun function, passing the handle of the length function and the cell array to determine the length of every element in the cell array
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
261
Use feval as an alternative way to accomplish the following function calls: abs(-4) size(zeros(4)) Use feval twice for this one!
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
187
Write a function plot2fnhand that will receive two function handles as input arguments, and will display in two Figure Windows plots of these functions,
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
174
Write a function that will receive data in the form of x and y vectors, and a handle to a plot function and will produce the plot. For example, a call to the function would look like wsfn(x,y,@bar)
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
178
Write an anonymous function to implement the following quadratic: 3x2-2x+5. Then, use fplot to plot the function in the range from -6 to 6
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
179
Why would you want to use an anonymous function?
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
164
Write an anonymous function to convert from fluid ounces to milliliters. The conversion is one fluid ounce is equivalent to 29.57 milliliters
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
197
Create a set of anonymous functions to do length conversions and store them in a file named lenconv.mat. Call each a descriptive name, such as cmtoinch to convert from centimeters to inches
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
189
The velocity of sound in air is 49.02 T feet per second where T is the air temperature in degrees Rankine. Write an anonymous function that will calculate this. One argument, the air temperature in degrees R, will be passed to the function and it will return the velocity of sound
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
259
The two real roots of a quadratic equation ax^2 + bx + c = 0 (where a is nonzero) are given by
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
187
Write a function to calculate the volume of a cone. The volume V is V = AH where A is the area of the circular base (A = r 2 where r is the radius) and H is the height. Use a nested function to calculate A
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
455
Write a function that will receive a variable number of input arguments: the length and width of a rectangle, and possibly also the height of a box that has this rectangle as its base
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
209
List some built-in functions that have a variable number of output arguments (or, at least one!)
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
157
Total:
2249
Previous
8
9
10
11
12
Next
Go