How do I use either "printf()" or "mexPrintf()" when either call gets me "Unknown function or variable"?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Steve Mims
il 19 Nov 2018
Commentato: James Tursa
il 20 Nov 2018
I am new to Matlab on a Mac, having used Matlab and Octave in Linux environments for years. I find
that I cannot use "printf" or what I see described as "mexPrintf" to show variables in the command line window.
I get the error message "Unknkown function or variable". Is there some path addition that I need to do in order
that this Matlab see all the available functions? Or are these functions considered beyond the reasonable need
of a "home" user of Matlab?
2 Commenti
Risposta accettata
James Tursa
il 19 Nov 2018
Typically use disp( ) or display( ) or fprintf( ) to display variables in the command window.
2 Commenti
James Tursa
il 20 Nov 2018
If you supply a file I/O parameter as the 1st argument, fprintf also writes to files.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Import and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!