Matlab function equivalent to seqa()
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Adrian Austin
am 8 Feb. 2019
Kommentiert: Adrian Austin
am 9 Feb. 2019
Is there a Matlab function equivalent to seqa()
1 Kommentar
John D'Errico
am 8 Feb. 2019
seqa?
If you want help, you need to give people a clue what it does. Yes, maybe you know what jargon or acronym this refers to, but others may not.
Akzeptierte Antwort
Star Strider
am 8 Feb. 2019
If you are talking about this:
x = seqa(start, step, count);creates a sequence of 'count' numbers starting at 'start' and increasing by 'step'.
2 Kommentare
Walter Roberson
am 8 Feb. 2019
Note that colon is colon(start, step, stop) not (start, step, count) . The stop point might not be included in the list for colon: for example 1:2:3.141 will include 1 and 3, but will not include 3.141 in the list.
There is also linspace, which is linspace(start, stop, count). The stop point is always included in the list unless count is less than 1; the start point is always included in the list unless count is less than 2 (so if the count is one, the stop will be included by the start will not be.)
Weitere Antworten (1)
Walter Roberson
am 8 Feb. 2019
Taking the hint from your gauss tag to find https://www.aptech.com/resources/gauss-quick-reference/
seqa = @(start, step, count) start + (0:count-1)*step;
Siehe auch
Kategorien
Mehr zu Logical 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!