Effacer les filtres
Effacer les filtres

A simple problem about matrix plz HELP me

2 vues (au cours des 30 derniers jours)
masha ghasemi
masha ghasemi le 10 Août 2020
Commenté : hosein Javan le 11 Août 2020
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?

Réponse acceptée

hosein Javan
hosein Javan le 10 Août 2020
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 commentaires
masha ghasemi
masha ghasemi le 11 Août 2020
Hello, Thank you a lot
hosein Javan
hosein Javan le 11 Août 2020
you're welcome. my pleasure.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by