|
|
Select
between several screens. The layout of the screens
can be easily changed by editing a little text
file. These text files contain the text for each
button separated by a comma.
|
|
|
|
|
The
only difference between this screen and the screen
above is the text file used to assign the buttons.
Notice how the top three lines are evaluated when
the exe button is pressed and the result is displayed
on the last line. The matrix p contains four values
and is multiplied in line two by 1.6 and 1.8.
A scroll bar is used when the program contains
more than three lines.
|
| |
|
|
This
is the matrix screen. The buttons are smaller.
These button also can be easily changed by editing
a little text file.
|
|
|
|
|
x=0:20:360;
r=x./180*pi;
plot(x,sin(r),cos(r))
title('Plot of TWO functions.')
xlabel('Angle [degrees]')
ylabel('Amplitude') |
|
Note:
The last three lines are only to print the labels
and title. These are not needed for drawing the
plot. To save space on the limited screen a multiplication
factor is used for the x-axis. In this case 100.
|
|
|
|
|
R=1000
;C=1e-6;
Fc=1/(2*pi*R*C)
f=[10:10:1000];
w=1j*2*pi*f;
H=1./(1+w.*R*C);
semilogx(f,abs(H))
title(‘Frequency response’)
xlabel(‘Frequency’)
ylabel(‘Gain’) |
|
Note:
The second line is not terminated the with a semi-colon.
Therefore the result of the second line will be
displayed.
|
|
|
|
|
R=0.6;
Theta=0:0.03:2*pi;
z=R*exp(1j*Theta);
H=(z-1)./((z+1).*(z.^2+z+1));
plot(H)
title(‘W-plane’)
xlabel(‘Real’)
ylabel(‘Imaginary’) |