Example to change the line width from the default, MATLAB in Engineering

Example to change the line width from the default:

For illustration, to change the line width from the default of 0.5 to 1.5:

>> set(hl,'LineWidth',1.5)

As long as the Figure Window is open and this object handle is still valid, the width of the line will be increased.

Also the properties can be set in the original function call. For illustration, this will increase the line width as shown in figure.

>> hl = plot(x,y, 'Linewidth', 2.5);

1804_Example to change the line width from the default.png

Posted Date: 10/22/2012 2:08:58 AM | Location : United States







Related Discussions:- Example to change the line width from the default, Assignment Help, Ask Question on Example to change the line width from the default, Get Answer, Expert's Help, Example to change the line width from the default Discussions

Write discussion on Example to change the line width from the default
Your posts are moderated
Related Questions
Algorithm for expfn function: The algorithm for expfn function is as shown:  receives the value of x as the input argument.  Prints the value of exp(x).  assigns a

Replacement : Replace a row by adding it to (or subtract from it) a multiple of the other row. For a given row ri, this is written as   ri  - srj →  ri Note that when r

Interpolation and extrapolation: In most cases, it is desired to estimate values other than at the sampled data points. For illustration, we may want to estimate what the temp

Illustration of Graphics properties: A particular property can also be exhibited, for illustration, to view the line width:     >> get(hl,'LineWidth')     ans =

Comparing strings: There are few functions which compare strings and return logical true when they are equivalent or logical false when not. The function strcmp compares the s

Example of image processing: The other illustration generates a 5 × 5 matrix of arbitrary integers in the range from 1 to the number of colors; the resultant image is as shown

Variable Scope: The scope of any of variable is the workspace in which it is valid. The workspace generated in the Command Window is known as the base workspace. As we know

Illustration sorting vectors of structures: This function sorts the structures depend only on the price field. A more common function is shown next, that receives a string whi

Use of built-in colormaps: MATLAB has built-in colormaps, it is also possible to generate others by using combinations of any colors. For illustration, the following generates

Expanding a function: The expand function will multiply out terms, and factor will do the opposite: >> expand((x+2)*(x-1)) ans = x^2 x-2 >> factor(ans)