Want to create a time vector
1 回表示 (過去 30 日間)
古いコメントを表示
Hello guys,
i got stuck in this one. I want to create a time vector like -10 <= t < 10 ( because using <= then i have to include -10 in t and not include 10 in t.)
i did something like:
t = -10:0.01:10;
stp = @(t) double(t>=0);
Is my code right?
0 件のコメント
回答 (1 件)
Star Strider
2022 年 10 月 2 日
t = -10:0.01:10-0.01 % 'colon'
t(end)
t = linspace(-10, 9.99, 2000) % 'linspace'
t(end)
.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!