setting length of variable

11 次查看(过去 30 天)
I have three variables of varying ranges such as
a = 1:10
b = 100:4000
c = 1:4
Is there a way to make sure no matter what the range for a,b,and c are, they have the same number of elements in each array

采纳的回答

Star Strider
Star Strider 2018-7-5
Yes.
Use the linspace (link) function.

更多回答(1 个)

Kazeem Issa
Kazeem Issa 2019-2-13
Yes
Use linspance(a,b,n)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by