Create matrix with step of columns
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dmitry Timofeev
le 26 Déc 2019
Commenté : Dmitry Timofeev
le 27 Déc 2019
clear; clc;
v = 1:257;
n = 10;
k = 7;
newV = (repmat(v, n, 1) + k) .* 2.^(0:(n-1))' - k;
Now I have a matrix with first column, for example if k=7, I have [1;9;25;57;121], but I need column [1;9;17;25;33;41].
How to do this?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Identification 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!