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 creates a vector of line segments (where each is a nested structure as shown in this chapter). Initialize the vector using any method. Print a table showing the values, such as shown in the following:
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
165
Design a nested structure to store information on constellations for a rocket design company. Each structure should store the constellation’s name and information on the stars in the constellation
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
482
Create a nested struct to store a person’s name, address, and phone numbers. The struct should have 3 fields for the name, address, and phone. The address fields and phone fields will be structs
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
479
Quiz data for a class is stored in a file. Each line in the file has the student ID number (which is an integer) followed by the quiz scores for that student. For example, if there are four students and three quizzes for each, the file might look like this:
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
260
A script stores information on potential subjects for an experiment in a vector of structures called subjects. The following shows an example of what the contents might be:
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
176
In chemistry, the pH of an aqueous solution is a measure of its acidity. A solution with a pH of 7 is said to be neutral, a solution with a pH greater than 7 is basic, and a solution with a pH less than 7 is acidic
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
138
Write a function “separatethem” that will receive one input argument which is a structure containing fields named ‘length’ and ‘width’, and will return the two values separately. Here is an example of calling the function:
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
164
Create a data structure to store information about the elements in the periodic table of elements. For every element, store the name, atomic number, chemical symbol, class, atomic weight, and a sevenelement vector for the number of electrons in each shell
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
142
A complex number is a number of the form a + ib, where a is called the real part, b is called the imaginary part,
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
182
What would be an advantage of using structures over cell arrays?
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
169
What would be an advantage of using cell arrays over structures?
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
165
Here is an inefficient way of creating a structure variable to store a person’s name as first, middle, and last:
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
491
Create a structure variable that would store for a student his or her name, university id number, and GPA. Print this information
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
150
Total:
2249
Previous
13
14
15
16
17
Next
Go