Skip to content

Commit 0f925cc

Browse files
committed
fixed matlab figures
1 parent 8c9ab14 commit 0f925cc

File tree

7 files changed

+3
-3
lines changed

7 files changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ ylabel('f(x)','FontSize',16);
455455
box on;
456456
```
457457

458-
![Matlab figure 1](https://github.com/csmsoftware/Programming-for-data-analysis-tutorial-Matlab-R-Python/raw/master/img/matlab-figure1.png "Matlab figure 1")
458+
![Matlab figure 1](https://github.com/csmsoftware/Programming-for-data-analysis-tutorial-Matlab-R-Python/raw/master/img/matlab-figure-1.png "Matlab figure 1")
459459

460460
These commands could be typed individually into the command prompt, or equally saved into a script so that all of the commands can be run together. To plot the cosine of x as well, we can run the following commands:
461461

@@ -466,7 +466,7 @@ hold on;
466466
h2 = plot(x,cos(x),'Color','red','LineStyle','--','LineWidth',2);
467467
```
468468

469-
![Matlab figure 2](https://github.com/csmsoftware/Programming-for-data-analysis-tutorial-Matlab-R-Python/raw/master/img/matlab-figure2.png "Matlab figure 2")
469+
![Matlab figure 2](https://github.com/csmsoftware/Programming-for-data-analysis-tutorial-Matlab-R-Python/raw/master/img/matlab-figure-2.png "Matlab figure 2")
470470

471471
The 'hold' command is required to prevent the plotting of the cosine wave overwriting that of the sine wave. If, instead, you wanted to draw the cosine in a separate graph, then first create a new empty figure.
472472

@@ -487,7 +487,7 @@ set(gca,'FontSize',14,...
487487
xlim([0 3*pi]);
488488
```
489489

490-
![Matlab figure 3](https://github.com/csmsoftware/Programming-for-data-analysis-tutorial-Matlab-R-Python/raw/master/img/matlab-figure3.png "Matlab figure 3")
490+
![Matlab figure 3](https://github.com/csmsoftware/Programming-for-data-analysis-tutorial-Matlab-R-Python/raw/master/img/matlab-figure-3.png "Matlab figure 3")
491491

492492
Functions take inputs and typically produce outputs, and a simple function is shown below. Note the use of (square) brackets for grouping the output arguments and the parentheses for grouping the input arguments:
493493

img/matlab-figure-1.png

29.8 KB
Loading

img/matlab-figure-2.png

37.6 KB
Loading

img/matlab-figure-3.png

35.6 KB
Loading

img/matlab-figure1.png

-33.4 KB
Binary file not shown.

img/matlab-figure2.png

-103 KB
Binary file not shown.

img/matlab-figure3.png

-106 KB
Binary file not shown.

0 commit comments

Comments
 (0)