Just a line Visual Basic to Matlab

1 view (last 30 days)
Dursun
Dursun on 9 May 2011
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.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 9 May 2011
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

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!