x and fx matrix
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
reshef caspi
am 11 Jan. 2021
Beantwortet: WalterWhite
am 11 Jan. 2021
i need help with building 2 row 10 colum matrix, the first row will present my x values and under every x i want the matrix to show me the value of f(x)
for example, if my f(x) = 2x and 0<x<11
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20
thanks for the help
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
WalterWhite
am 11 Jan. 2021
Another way to get the solution
x(1,:) = 1:10; %x
x(2,:) = x(1,:).^x(1,:); %f(x)= x^x
x
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!