What is wrong with code?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
GEORGIOS BEKAS
am 3 Jan. 2018
Bearbeitet: Birdman
am 3 Jan. 2018
I want a matrix as follows:
n = 12
b = zeros(n,n)
b(1,:) = 1:n
b(2,:) = 1:n.^2
etc...
How can I express that in a loop form?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!