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
Explain in words what the following function accomplishes (not step-by-step, but what the end result is)
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
163
Assume that you have the following function and that it has not yet been called
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
158
Write a script that will create x and y vectors. Then, it will ask the user for a color (‘red’, ‘blue’, or ‘green’) and for a plot style (circle or star). It will then create a string pstr that contains the color and plot style, so that the call to the plot function would be:
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
270
Write a function that will generate two random integers, each in the inclusive range from 10 to 30. It will then return a string consisting of the two integers joined together, e.g
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
191
Write a script that will, in a loop, prompt the user for four course numbers. Each will be a string of length 5 of the form ‘CS101’. These strings are to be stored in a character matrix
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
407
The following script calls a function getstr that prompts the user for a string, error-checking until the user enters something (the error would occur if the user just hits the Enter key without any other characters first)
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
149
A file name is supposed to be in the form filename.ext. Write a function that will determine whether a string is in the form of a name followed by a dot followed by a three-character extension, or not. The function should return 1 for logical true if it is in that form, or 0 for false if not
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
212
Write a program to calculate the position of a projectile at a given time t. For an initial velocity v0 and angle of departure θ0, the position is given by x and y coordinates as follows (note: the gravity constant g is 9.81m/s2 ):
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
167
Write a menu-driven program to investigate the constant π. Model it after the program that explores the constant e. Pi (π) is the ratio of a circle’s circumference to its diameter
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
410
Write a menu-driven program to convert a time in seconds to other units (minutes, hours, and so on). The main script will loop to continue until the user chooses to exit
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
202
The braking distance of a car depends on its speed as the brakes are applied and on the car’s braking efficiency. A formula for the braking distance is
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
414
The following script land calls functions to:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
164
Assume a matrix variable mat, as in the following example:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
168
Total:
2249
Previous
17
18
19
20
21
Next
Go