Running two loops at once

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 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

タグ

質問済み:

2017 年 11 月 17 日

コメント済み:

2017 年 11 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by