Filter löschen
Filter löschen

Running two loops at once

2 Ansichten (letzte 30 Tage)
matlabkid602
matlabkid602 am 17 Nov. 2017
Kommentiert: KSSV am 17 Nov. 2017
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 Kommentar
KSSV
KSSV am 17 Nov. 2017
What's the necessity to make a loop index negative?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by