saving . . . saved vector operations exercise 2 has been deleted. vector operations exercise 2 has been hidden .
vector operations exercise 2
Sir, unable to get output for the following 

getting error..

instead of getting error is there any alternate method to get some solution for matrix operation..

Scilab Vector-Operations 04-05 min 40-50 sec 04-05-19, 11:59 a.m. chitraraj05


The error is a part of the exercise. It is meant to motivate understanding of matrices with inconsistent sizes. Type size(A) and then size(C), and compare the dimensions.
04-05-19, 12:02 p.m.
Thank you ,,, but i want to know that if matrix row and col size is not equal any alternate way to compute
04-05-19, 12:15 p.m. chitraraj05

Login to add comment

May be Vectors have not proper number of raw and columns to multiply.

04-05-19, 12:04 p.m. Dkap_911
Choose 2*2 matrix and perform these operations.
04-05-19, 12:04 p.m. Dkap_911

Login to add comment

to substract two matrices number of rows and cols of both matrix must be same.
rows and cols of A*C and C*A are different.
so its giving substraction error
The same reason for multiplication operation also. Please check the condition for matrix multiplication operation.
04-05-19, 12:04 p.m. karthikeyanmpme

In statement 1 A*C returns 3*3 matrix and C*A returns 2*2 matrix so subtraction is not possible.
In statement 2 2*C returns 2*3 matrix and 6*A returns 3*2 matrix again so subtraction possible in that case.
In statement 3 2*C-6*A' returns 2*3 matrix and B' returns 2*1 matrix so multiplication is not feasible as no. of columns of first are not equal to no. of rows of second.

I think this will help. 
04-05-19, 12:10 p.m. Ami12

Log-in to answer to this question.