matlab
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| matlab [2022/12/13 09:42] – ethanminot | matlab [2024/05/23 15:58] (current) – ethanminot | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| These lines of code help make a better looking plot that can be exported for a notebook or a publication. | These lines of code help make a better looking plot that can be exported for a notebook or a publication. | ||
| - | * plot(x,y2,' | + | |
| - | | + | y=2*sin(x/5); |
| - | * set(gca,' | + | figure(' |
| - | | + | p=plot(x,y,' |
| - | | + | set(gca,' |
| - | | + | |
| + | | ||
| + | ylabel(' | ||
| + | set(gca,' | ||
| + | |||
| + | Additional pointers about graphs on Matlab. | ||
| + | *If your data is very big or very small, multiply the data by a scaling factor and note this scaling factor in the units. For example, rather | ||
| + | *From the menus associated with the figure, go to "file > export setup > rendering", | ||
| + | *From the menus associated with the figure, go to "file > save as", and save as a png file. Choose png because it is much better than jpg for line graphics. | ||
matlab.1670953372.txt.gz · Last modified: 2022/12/13 09:42 by ethanminot
