Solved

Is there a easy way to call on the minor of a matrix?

Posted on 2010-11-28
1
629 Views
Last Modified: 2013-11-25
Given an nxn matrix, I want to call on the n/3Xn/3 (assume n divisible by 3) matrix appearing in the center so that I can change its elements to zeros. For example, if I had a 6x6 matrix A, I would want to change the entries A(15), A(16), A(21), A(22) to zeros.
0
Comment
Question by:Mario271
1 Comment
 
LVL 2

Accepted Solution

by:
Eyal-f earned 500 total points
ID: 34226400
How about this:

A is your matrix.

k=(n-n/3)/2+1;
A(k:(n-k+1),k:(n-k+1))=0;
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
This video teaches viewers about errors in exception handling.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now