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 Community
类别
在 帮助中心 和 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!