How to output a cell array using fprintf?
Mostrar comentarios más antiguos
I am trying to figure out how to output this cell array from Excel using fprintf in my program. I would like to keep the same format. I keep getting errors saying that the function is not defined for cell inputs and get the same using sprintf and I'm not sure on how to convert it
Here is my array in Excel and in MATLAB Command window.


Here is the code I am running to call the program.

The ommision of the semicolon on all outputs the array.
Thank you!
1 comentario
VBBV
el 26 de Abr. de 2022
use cell2mat on output and then apply fpritntf
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!