summaryrefslogtreecommitdiff
path: root/2993/CH2/EX2.3/Ex2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2993/CH2/EX2.3/Ex2_3.sce')
-rw-r--r--2993/CH2/EX2.3/Ex2_3.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2993/CH2/EX2.3/Ex2_3.sce b/2993/CH2/EX2.3/Ex2_3.sce
new file mode 100644
index 000000000..e9b485d87
--- /dev/null
+++ b/2993/CH2/EX2.3/Ex2_3.sce
@@ -0,0 +1,12 @@
+
+clc;
+close;
+
+Num_of_pixels_in_width = 2400; // Given width of the image in pixels
+Num_of_pixels_in_height = 2400;//Given height of the image in pixels
+Resolution = 300 // Scanning resoltuion in DPI
+
+//The Physical size of the Image
+disp(string(Num_of_pixels_in_width/Resolution)+" inches x "+ string(Num_of_pixels_in_width/Resolution)+" inches","The physical size is = ")
+
+