Solved

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

Posted on 2010-11-28
1
637 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
withoutTen challenge 14 141
Modbus - whats the maximum I can store in one register? 4 84
Python multiple IF statements 4 113
Non-recursive backtracking, using a stack 1 312
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

751 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