필터 지우기
필터 지우기

A simple problem about matrix plz HELP me

조회 수: 2 (최근 30일)
masha ghasemi
masha ghasemi 2020년 8월 10일
댓글: hosein Javan 2020년 8월 11일
Hello,
I have this matrix that attached, every row shows SURF features for one image, but these features are so close together, I wanna increase discrimination between every row, and take to a larger scale,
how cani do this?
can you help me plz?

채택된 답변

hosein Javan
hosein Javan 2020년 8월 10일
suppose your matrix is called "X". if you want to scale each row by a known factor, write this code:
% define a column vector called S where S(i) is the scaling factor for each row.
[~,c] = size(X)
Xp = repmat(S,[1 c]).*X % the scaled matrix
vector S must have the same number of rows as matrix X. the values in S must be around 1 (eg: 0.92, 1.04,etc) to not change your main matrix entirely but that's on your own.
  댓글 수: 2
masha ghasemi
masha ghasemi 2020년 8월 11일
Hello, Thank you a lot
hosein Javan
hosein Javan 2020년 8월 11일
you're welcome. my pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by