Creating a Vector with 5 elements in a specific way

Answers (1)

Hi Yuval,
n = 5;
u = 2.^(0:n-1);
Hope this helps.
Regards,
Sriram

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 30 Jul 2020

Answered:

on 30 Jul 2020

Community Treasure Hunt

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

Start Hunting!