Change all values of column vector (pulled from matrix via indexing) to one value

5 vues (au cours des 30 derniers jours)
M.A.G.
M.A.G. le 27 Fév 2020
Réponse apportée : M.A.G. le 27 Fév 2020
Hello,
I wish to change all values from array (column vector) to the same value. That is,
N(1:3,1)= s
where s is preveoisly defined and N is a matrix. Is there an intelligent way to do this?

Réponses (1)

M.A.G.
M.A.G. le 27 Fév 2020
The answer is in my question.

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by