Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
7 Cards in this Set
- Front
- Back
Hold on Hold off |
If I want two plots on the same figure I use hold on-hold off commands. For Example; x=linspace (-2,2); y=x.^2; y2=sin(x); plot (x,y)lines Hold on plot(x,y2) Hold off |
|
Linespace |
Bir araliktaki 100 tane point i hesapliyir. Mesela x=linespace (-2,2) Yaparsak bu araliktaki 100 tane pointi hesplar. Yani x degeri bu yuz degeri alirx= |
|
x=[-2 -1 0 1 2] |
Bu sekilde x i tanimlarsak bu x sadece 5 deger alir demektir. Ara degerleride alir demek istiyorsak linespace kullanmaliyiz. Yada x=-2:0.5:2 kullanabiliriz mesela. |
|
x=0:0.5:3 |
x= 0 0.5 1 1.5 2 2.5 3
x bu degerleri alir demek oluyor. |
|
Specify Axis Limits |
xlim([0, 10]).
We can control where data appears in the axes by setting the x-axis, y-axis |
|
Label the axes |
xlabel(‘space’) ylabel(‘time’) title(‘grafik ismi’) |
|
How matlab works? |
Matlab knows how to solve linear algebra. That’s why you should first transform the problem to linear algebra by solving the coefficient matrix by hand. |