I am receiving information from C program but cannot access the data
古いコメントを表示
I am receiving information from C program but cannot access the data.
Matlab line
[ret1] = calllib('fc_matlab','stopPrices','none');
works well, but I have no idea how to get the return values. They are printed to Matlab as
fc_msg =
1, EUR/USD, Bid=1.087480, Ask=1.087600
I would appreciate you help,
Many thanks,
Leon
回答 (1 件)
Walter Roberson
2016 年 3 月 2 日
datacell = textscan(fc_msg, '%f%sBid=%fAsk=%f','Delimiter',',');
quantity = datacell{1};
currency = datacell{2};
bid = datacell{3};
ask = datacell{4};
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!