Use reshape and/or remap to create matrix where every other row is negative

2 vues (au cours des 30 derniers jours)
How do I create the following matrix with only using reshape and/or repmat?
  5 commentaires
Jan
Jan le 24 Jan 2021
Do you mean "repmat" oder "remap"?
Maximilian Vorbrodt
Maximilian Vorbrodt le 24 Jan 2021
Modifié(e) : Maximilian Vorbrodt le 24 Jan 2021
Sorry it is meant to say "repmat". @Jan

Connectez-vous pour commenter.

Réponses (1)

Reshma Nerella
Reshma Nerella le 29 Jan 2021
Hi,
Refer to the documentation and examples of repmat and reshape.

Catégories

En savoir plus sur Matrix Indexing 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