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 to add two 30-digit numbers and print the result. This is not as easy as it might sound at first, because integer types may not be able to store a value this large
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
227
Write a script that will prompt the user for N integers, and then write the positive numbers (>= 0) to an ASCII file called pos.dat and the negative numbers to an ASCII file called neg.dat. Error-check to make sure that the user enters N integers
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
185
Instead of printing the WCFs in the previous problem, create a matrix of WCFs and write them to a file. Use the programming method, using nested loops
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
172
The Wind Chill Factor (WCF) measures how cold it feels with a given air temperature T (in degrees Fahrenheit) and wind speed V (in miles per hour). One formula for WCF is
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
154
Write a script beautyofmath that produces the following output. The script should iterate from 1 to 9 to produce the expressions on the left, perform the specified operation to get the results shown on the right, and print exactly in the format shown here
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
209
Which is faster: using a switch statement or using a nested if else? Write a script to test this
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
176
Write a script that will prompt the user for a quiz grade and error-
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
158
Which is faster: using false or using logical(0) to preallocate a matrix to all logical zeros? Write a script to test this
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
178
For each of the following, decide whether you would use a for loop, a while loop, a nested loop (and if so what kind, e.g. a for loop inside of another for loop, a while loop inside of a for loop, etc.), or no loop at all. DO NOT WRITE THE ACTUAL CODE
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
196
Give some examples of when you would need to use a counted loop in MATLAB, and when you would not
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
169
Vectorize the following code. Write statement(s) that accomplish the same thing, eliminating the loop. Assume that there is a vector v that has a negative number in it, e.g:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
169
Vectorize the following code. Write one assignment statement that would accomplish the same thing. Assume that mat is a matrix variable that has been initialized
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
164
The following code was written by somebody who does not know how to use MATLAB efficiently. Rewrite this as a single statement that will accomplish exactly the same thing for a matrix variable mat (e.g., vectorize this code):
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
231
Total:
2249
Previous
20
21
22
23
24
Next
Go