Define an empty matrix Z. Using FOR statement for i = 1, . . . , 10, print out i and store i in the matrix Z at each iteration

1 view (last 30 days)
how to show that in matlab??

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 9 Apr 2023
Edited: KALYAN ACHARJYA on 9 Apr 2023
Hint: Complte it. Learn MATLAB Basics MATLAB Onramp
Z=zeros(1,10);
for i=1:10
i
Z(i)=........;% Complete it
end

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!