How i select a part or section of a matrix ?

126 Ansichten (letzte 30 Tage)
Louis-Philippe Talbot
Louis-Philippe Talbot am 4 Mär. 2014
Kommentiert: Image Analyst am 26 Jul. 2022
So I want to compare the matlab function inv(A) (to have a matrix inverse of A) with the way we suppose to do at hand the function is : >>> rref([A eye(size(A))]) So example : I got a something like (but freaking bigger (9*18))
* [ 1 0 a b [a b
* 0 1 c d ] and I just want to keep the c d]
[1, 0, a, b; 0, 1, c, d] >>> [a, b; c, d]
How I supposed to do It look like it super simple but now I got no idea how to do. Thank

Antworten (1)

Image Analyst
Image Analyst am 4 Mär. 2014
out = m(:,3:4); % Extract columns 3 and 4 only into a new 2D array.
  4 Kommentare
Muhammad Taha Manzoor
Muhammad Taha Manzoor am 25 Jul. 2022
Hello Image Analyst,
I have a big matrix of some solar flux measurements. I am able to plot the flux map using imagesec but my I am intrested in the flux values which fall in 50 mm dia of circle. I can create a circluar ROI on the image but how do I extract the data within that circle? I mean I have the data stroed in a matrix I just need to crop out the relavent values in the 50 mm dia and then take an avergae of those values
Image Analyst
Image Analyst am 26 Jul. 2022
@Muhammad Taha Manzoor make your binary image mask of the circle, like with poly2mask or however, then do
meanIntensity = mean(fluxImage(mask))

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Type Identification finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by