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!