simple matlab command m=1:10 going up in values of 0.5

28 次查看(过去 30 天)
This is very silly but how would i make m=1:10 be values from 1 to 10 but instead of going up in integers go up in values of 0.5.
i.e. m =1 , 1.5, 2 , ..., 9.5 , 10

采纳的回答

Geoff Hayes
Geoff Hayes 2016-9-1
ahmed - just try
m = 1:0.5:10;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by