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
A script rancolors displays random colors in the Figure Window as shown in the Figure below. It starts with a variable nColors which is the number of random colors to display (e.g., below this is 10)
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
254
Write a script that would produce the following 50 x 50 “image” using the RGB, or true color method (NOT the colormap method)
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
429
Write a function numimage that will receive two input arguments: a colormap matrix, and an integer “n”; the function will create an image that shows n “rings” of color, using the first n colors from the colormap. For example, if the function is called as follows:
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
296
Write a script that will create the image seen in the Figure below using a colormap
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
182
Create a custom colormap for a sphere that consists of the first 25 colors in the default colormap jet. Display sphere(25) with a colorbar
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
230
Write a function plotline that will receive x and y vectors of data points, and will use the line primitive to display a line using these points. If only the x and y vectors are passed to the function, it will use a line width of 5; otherwise, if a third argument is passed,
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
246
Using the patch function, create a black box with unit dimensions (so, there will be eight vertices and six faces). Set the edge color to white so that when you rotate the figure, you can see the edges
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
188
Write a script that will create a two-dimensional patch object with just three vertices and one face connecting them
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
203
A hockey rink looks like a rectangle with curvature. Draw a hockey rink, as in the Figure
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
172
Write a script that will start with a rounded rectangle. Change both the x and y axes from the default to go from 0 to 3
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
205
Write a script that will display rectangles with varying curvatures and line widths, as shown in the Figure. The script will, in a loop, create a 2 by 2 subplot showing rectangles
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
365
Create a rectangle object, and use the axis function to change the axes so that you can see the rectangle easily. Change the Position, Curvature, EdgeColor, LineStyle, and LineWidth. Experiment with different values for the Curvature
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
184
Create a graph, and then use the text function to put some text on it, including some \\specchar commands to increase the font size and to print some Greek letters and symbols
Matlab
2022-11-30
Answers
30
Question
40
Followers
30
0
1
177
Total:
2249
Previous
4
5
6
7
8
Next
Go