Question: MATLAB 4. Write a function named thickLines.m, with function declaration 1 function thickLines (H) The purpose of the function is to increase the value of

MATLAB

MATLAB 4. Write a function named thickLines.m, with function declaration 1 functionthickLines (H) The purpose of the function is to increase the valueof the linewidth property of each line object (as specified by input

4. Write a function named thickLines.m, with function declaration 1 function thickLines (H) The purpose of the function is to increase the value of the linewidth property of each line object (as specified by input argument, explained below) by an additive factor of 2. It can be called in several manners: with no input arguments, in which case the line objects in question (i.e., those that will be modified) are those in the CurrentAxes of the CurrentFigure; with one input argument, which should be a vector of handles. The handles should be to axes objects and/or to figure objects. For axes object handles, all line objects within the axes are to be modified. For figure object handles, all line objects within all axes objects of the figure are to be modified. Nu 1 0 0.8 -2 0.6 -4 0.4 0.2 -6 1 2 0 3 4 5 6 7 0 -0.2 -0.4 0.5 -0.6 -0.8 od 1 2 3 5 2 3 4 5 6 7 Figure 6: Problem 4 before executing thickLines([A1;F2]). 1 0 0.8 -2 0.6 -4 0.4 0.2 -6 2 5 7 0 -0.2 -0.4 0.5 -0.6 -0.8 op 1 2 3 5 7 2 3 4 5 6 7 Figure 7: Problem 4 after executing thickLines([A1;F2]). For example 1 2 3 F1 = figure; A1 = subplot (2,1,1); x = linspace (0,2*pi, 100); 4 plot (x, sin(x), X,X.*sin(x)); A2 = subplot (2,1,2); 6 plot (x, exp(-x)); F2 = figure; 8 plot (x,cos (x)); 5 7 Initially, the figures appear as shown in Figure 6. After executing the following line, they appear as shown in Figure 7. 1 thickLines ([A1;F2])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!