Problem with Vercat error
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, Why i have vercat error? They are the same , but i have and error. Please view the image. Thanks
<<
>>
0 commentaires
Réponse acceptée
Star Strider
le 15 Fév 2016
They’re not the same:
B = [82:246, 117:351];
RowA = 82;
ColumnA = 117;
B_elements = [RowA 246; ColumnA 351]
B_elements_range = diff(B_elements,[],2)
B_elements =
82 246
117 351
B_elements_range =
164
234
0 commentaires
Plus de réponses (1)
Dani D
le 15 Fév 2016
1 commentaire
Star Strider
le 15 Fév 2016
It seems that you want to create it from an existing matrix.
This works:
A = randi(99, 250, 400); % Create Original Matrix
B = A(82:246, 117:351); % Create New Matrix From Elements Of ‘A’
Voir également
Catégories
En savoir plus sur Denoising and Compression 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!