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
With a matrix, when would: your outer loop be over the rows your outer loop be over the columns it not matter which is the outer and which is the inner loop?
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
414
Come up with “trigger” words in a problem statement that would tell you when it’s appropriate to use for loops and/or nested for loops
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
448
A machine cuts N pieces of a pipe. After each cut, each piece of pipe is weighed and its length is measured; these 2 values are then stored in a file called pipe.dat (first the weight and then the length on each line of the file)
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
210
Execute this script and be amazed by the results! You can try more points to get a clearer picture, but it may take a while to run
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
151
Write a for loop that will print the elements from a vector variable in sentence format, regardless of the length of the vector. For example, if this is the vector:
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
173
Write code that will prompt the user for 4 numbers, and store them in a vector. Make sure that you preallocate the vector!
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
157
Write a script that will load data from a file into a matrix. Create the data file first, and make sure that there is the same number of values on every line in the file so that it can be loaded into a matrix
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
184
Write a script that will: generate a random integer in the inclusive range from 2 to 5 loop that many times to o prompt the user for a number o print the sum of the numbers entered so far with one decimal place
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
403
Write a function prodby2 that will receive a value of a positive integer n and will calculate and return the product of the odd integers from 1 to n (or from 1 to n-1 if n is even). Use a for loop
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
191
Write a function sumsteps2 that calculates and returns the sum of 1 to n in steps of 2, where n is an argument passed to the function. For example, if 11 is passed, it will return 1 + 3 + 5 + 7 + 9 + 11
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
203
When would it matter if a for loop contained for i = 1:4 vs. for i = [3 5 2 6], and when would it not matter?
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
246
Prompt the user for an integer n and print “I love this stuff!” n times
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
429
In the Command Window, write a for loop that will iterate through the integers from 32 to 255. For each, show the corresponding character from the character encoding
Matlab
2022-11-29
Answers
30
Question
40
Followers
30
0
1
169
Total:
2249
Previous
22
23
24
25
26
Next
Go