How di I make concise multiple parameter calls?
古いコメントを表示
Is there an easy way of wrapping up multiple parameter calls via a single entity?
The parameters are a mix of floating point, integer and characters. I have:
formatspec=['\nExit conditions\n',...
'---------------\n',...
'Total products: %d\n',...
'Maximum fraction: %f\n',...
'Species: %d\n',...
'Product: %s\n',...
'Pressure [bar]: %f\n',...
'Ratio: %f\n\n'];
fprintf(formatspec,nproducts,mfrac,species,name,pcx,ofx);
I would like something on the lines of:
params=???nproducts,mfrac,species,name,pcx,ofx???;
fprintf(formatspec,params);
3 件のコメント
Christopher Stapels
2022 年 9 月 30 日
I see that you have tagged ThingSpeak in this post. Do you mean you are trying to pack multiple values in a single ThingSpeak field when you post data?
Brantosaurus
2022 年 9 月 30 日
Brantosaurus
2022 年 9 月 30 日
採用された回答
その他の回答 (0 件)
コミュニティ
その他の回答 ThingSpeak コミュニティ
カテゴリ
ヘルプ センター および File Exchange で Prepare and Analyze Data についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!