matlab
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| matlab [2022/12/13 09:40] – created 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,' | + | x=[400: |
| - | axis([3 35 0 34]) | + | y=2*sin(x/ |
| - | set(gca,' | + | figure(' |
| - | xlabel(' | + | p=plot(x,y,' |
| - | ylabel(' | + | set(gca,' |
| - | 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.1670953255.txt.gz · Last modified: 2022/12/13 09:40 by ethanminot
