Filter löschen
Filter löschen

What if you modify this matlab optimization example?

2 Ansichten (letzte 30 Tage)
Richárd Tóth
Richárd Tóth am 5 Aug. 2019
Bearbeitet: Torsten am 6 Aug. 2019
Hello
what if w2 is between 1 and 199 instead of 1-100? In that case wx and wy would have different sizes and it would throw an error at K1.
  6 Kommentare
Richárd Tóth
Richárd Tóth am 5 Aug. 2019
the answer seems to be yes
Torsten
Torsten am 6 Aug. 2019
Bearbeitet: Torsten am 6 Aug. 2019
yes. The number of elements created by meshgrid (or ndgrid) in the arrays wx and wy equals the number of grid points in two (or n) dimensions - and that's where the constraint is evaluated.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by