How di I make concise multiple parameter calls?
Mostrar comentarios más antiguos
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 comentarios
Christopher Stapels
el 30 de Sept. de 2022
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
el 30 de Sept. de 2022
Brantosaurus
el 30 de Sept. de 2022
Respuesta aceptada
Más respuestas (0)
Comunidades de usuarios
Más respuestas en ThingSpeak Community
Categorías
Más información sobre Prepare and Analyze Data en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!