Azzera filtri
Azzera filtri

what is summarised?

3 visualizzazioni (ultimi 30 giorni)
Ioannis Vourvachakis
Ioannis Vourvachakis il 30 Ott 2021
I can't understand the syntax. What is summarised?
if mod(sum([subCarbon;prodCarbon;metCarb(cofMetIDs...
(ismember(cofMetIDs,find(model.S(:,i)))))]),2) == 0

Risposta accettata

Cris LaPierre
Cris LaPierre il 30 Ott 2021
The columns of the array resulting from this concatenation command
[subCarbon; prodCarbon; metCarb(cofMetIDs(ismember(cofMetIDs,find(model.S(:,i)))))]
  2 Commenti
Walter Roberson
Walter Roberson il 30 Ott 2021
It certainly would have been clearer if they had broken out the metCarb(cofMetIDs(ismember(cofMetIDs,find(model.S(:,i))))) expression into a different variable (or series of variables.)
Ioannis Vourvachakis
Ioannis Vourvachakis il 31 Ott 2021
thank you!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Language Fundamentals in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by