How to set different intervals using linspace()?

9 次查看(过去 30 天)
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 ?

采纳的回答

Aquatris
Aquatris 2019-7-1
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 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by