Just a line Visual Basic to Matlab
Afficher commentaires plus anciens
I am converting Visual Basic Code into Matlab; however, I am stuck at the line shown below;
USDStream.ComponentMolarFlow.SetValues Compositions, "kgmole/h"
Since there is a blank between SetValues and Compositions, I could not find how to change this part.
The other alternative will be;
Call f.Streams.Item('1').ComponentMolarFlow.SetValues(Components,'kgmole/h');
However, I do not know whether 'Call' is existing in Matlab.
I would appreciate if you can suggest a solution. Thanks.
Réponses (1)
Fangjun Jiang
le 9 Mai 2011
0 votes
I don't think you need the "call" word here. You may need to add single quote if "Components" is the name of the property, such as:
f.Streams.Item('1').ComponentMolarFlow.SetValues('Components','kgmole/h');
The word "invoke" may be related. Check:
help invoke
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!