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

4 views (last 30 days)
How do I create the following matrix with only using reshape and/or repmat?

Sign in to comment.

Answers (1)

Reshma Nerella
Reshma Nerella on 29 Jan 2021
Refer to the documentation and examples of repmat and reshape.


Community Treasure Hunt

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

Start Hunting!

Translated by