summaryrefslogtreecommitdiff
path: root/3808/CH2/EX2.19/Ex2_19.sce
diff options
context:
space:
mode:
Diffstat (limited to '3808/CH2/EX2.19/Ex2_19.sce')
-rw-r--r--3808/CH2/EX2.19/Ex2_19.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3808/CH2/EX2.19/Ex2_19.sce b/3808/CH2/EX2.19/Ex2_19.sce
new file mode 100644
index 000000000..00d50b095
--- /dev/null
+++ b/3808/CH2/EX2.19/Ex2_19.sce
@@ -0,0 +1,23 @@
+//Chapter 02:Basic Structures: Sets, Functions, Sequences, Sums and Matrices
+
+clc;
+clear;
+
+mat=[]
+
+row=input("Enter the no. of rows:")
+col=input("Entet the no.of columns:")
+mprintf("Enter the elements:")
+for i=1:row
+ for j=1:col
+ mprintf('\nInput for Row %d , Column %d:',i,j)
+ n=input(" ")
+ mat(i)(j)=n
+end
+end
+mprintf("Original Matrix:")
+disp(mat)
+matt=mat'
+mprintf("Transpose of Matrix:")
+disp(matt)
+