How do I duplicate row vectors without using repelem or repmat?

How do I duplicate row vectors without using repelem or repmat?

1 Kommentar

Clare flagged this question with the comment "I figured out the question." Since it's been resolved, I'm clearing that flag.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Steven Lord
Steven Lord am 16 Feb. 2017

0 Stimmen

To me this sounds like it's almost certainly a homework problem. As such I won't give you the answer but I will suggest one tool you may find useful: the for loop. There are more efficient and compact ways to do it (like the repelem or repmat functions the assignment forbids you to use) but the for loop will work just fine.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 16 Feb. 2017

Kommentiert:

am 17 Feb. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by