saving . . . saved MATRIX EXTRACT VALUE has been deleted. MATRIX EXTRACT VALUE has been hidden .
MATRIX EXTRACT VALUE
Title
Question
IF A =[1 2 3; 4 5 6] and i want to extract column 1, 3 and row 1,2
how to extract?

Scilab Matrix-Operations 03-04 min 40-50 sec 04-05-19, 2:45 p.m. prasadprabhu1983

Answers:

To extract column 1 and 3 
Type, A(:,[1 3])
and 
To extract row 1 and 2
Type, A([1 2],:)
04-05-19, 2:48 p.m. rashpat93


B= [A(1:2, 1) A(1:2, 3)]
04-05-19, 2:51 p.m. siddharth11235@gmail.com


 A =[1 2 3; 4 5 6] 
A(:,[1 3])
 1.   3.
   4.   6.
A([1 2],:)
   1.   2.   3.
   4.   5.   6.

04-05-19, 3:38 p.m. drvkannan786


Log-in to answer to this question.