summaryrefslogtreecommitdiff
path: root/275/CH1/EX1.1.31/Ch1_1_31.sce
diff options
context:
space:
mode:
Diffstat (limited to '275/CH1/EX1.1.31/Ch1_1_31.sce')
-rwxr-xr-x275/CH1/EX1.1.31/Ch1_1_31.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/275/CH1/EX1.1.31/Ch1_1_31.sce b/275/CH1/EX1.1.31/Ch1_1_31.sce
new file mode 100755
index 000000000..5fc380b2a
--- /dev/null
+++ b/275/CH1/EX1.1.31/Ch1_1_31.sce
@@ -0,0 +1,12 @@
+clc
+disp("Example 1.31")
+printf("\n")
+disp("Plot the piecewise-linear characteristic of silicon diode")
+printf("Given\n")
+//given
+Vf=[0 0.7 0.74]
+If=[0 0 0.2]
+plot2d(Vf, If)
+xlabel("Vf")
+ylabel("If")
+xtitle("Piecewise-linear characteristic of diode")