How to set different intervals using linspace()?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Notname Notname
am 1 Jul. 2019
Beantwortet: Aquatris
am 1 Jul. 2019
I want to use intervals with different range for example:
1<=x<=100 would be linspace(1,100)
but can i use linspace without including first (or last) value:
1<x<=100 ?
1 Kommentar
Akzeptierte Antwort
Aquatris
am 1 Jul. 2019
If you want to remove a certain element;
x = linspace(1,100,1e3); % 1000 elements
i = 100; % index to be removed
x(i) = []; % remove ith element
which will remove the i th element from the array.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices 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!