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
Write a script that assigns values for the x coordinate and then y coordinate of a point, and then plots this using a green +
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
188
A script iotrace has been written. Here’s what the desired output looks like:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
576
Write a script lumin that will calculate and print the luminosity L of a star in Watts. The luminosity L is given by L = 4 π d2 b where d is the distance from the sun in meters and b is the brightness in Watts/meters2 . Here is an example of executing the script:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
292
Write a script that will prompt the user for a character, and will print it twice; once left-justified in a field width of 5, and again rightjustified in a field width of 3
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
212
If the lengths of two sides of a triangle and the angle between them are known, the length of the third side can be calculated. Given the lengths of two sides (b and c) of a triangle, and the angle between them α in degrees, the third side a is calculated as follows:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
290
Write a script called echostring that will prompt the user for a string, and will echo print the string in quotes:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
184
When would you use disp instead of fprintf? When would you use fprintf instead of disp?
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
181
Experiment, in the Command Window, with using the fprintf function for integers. Make a note of what happens for each. Use fprintf to print the integer 12345
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
273
Experiment, in the Command Window, with using the fprintf function for real numbers. Make a note of what happens for each. Use fprintf to print the real number 12345.6789
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
181
Write an input statement that will prompt the user for a real number, and store it in a variable. Then, use the fprintf function to print the value of this variable using 2 decimal places
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
178
Write a statement that prompts the user for his/her name
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
183
Write a statement that prompts the user for his/her favorite number
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
177
Create a vector variable vec; it can have any length. Then, write assignment statements that would store the first half of the vector in one variable and the second half in another
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
183
Total:
2249
Previous
27
28
29
30
31
Next
Go