Running two loops at once

1 次查看(过去 30 天)
matlabkid602
matlabkid602 2017-11-17
评论: KSSV 2017-11-17
Hi.
I have a problem where I need to run two index parameters at one time.
For example, I need p to go from 1:21, but I also need an index n to run from -10:10 for each value of p. So when p=1, n =-10 etc
How do I do this?
  1 个评论
KSSV
KSSV 2017-11-17
What's the necessity to make a loop index negative?

请先登录,再进行评论。

回答(0 个)

类别

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

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by