Just a line Visual Basic to Matlab
Ältere Kommentare anzeigen
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.
Antworten (1)
Fangjun Jiang
am 9 Mai 2011
0 Stimmen
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
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!