Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
function savefile(file,path,format,index)
function savefile saves workspace variable FILE as a formatted matrix FILENAME to disk.
Input:
FILE workspace variable
PATH path and filename of saved FILE (output)
FORMAT Field Width and Precision Specifications of output
INDEX Conversion characters
Conversion characters specify the notation of the output.
SpecifierDescription:
c Single character%dDecimal notation (signed)
e Exponential notation (using a lowercase e as in 3.1415e+00)
E Exponential notation (using an uppercase E as in 3.1415E+00)
f Fixed-point notation
g The more compact of e or f , as defined in [2]. Insignificant zeros do not print.
G Same as %g, but using an uppercase E
i Decimal notation (signed)
o Octal notation (unsigned)
s String of characters
u Decimal notation (unsigned)
x Hexadecimal notation (using lowercase letters a-f)
X Hexadecimal notation (using uppercase letters A-F)
example
file1=rand(3,5);
savefile (file1,'d:\output.txt',5.2,'f')
Citation pour cette source
Sahar Sodoudi (2026). savefile (https://fr.mathworks.com/matlabcentral/fileexchange/8764-savefile), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.0.0.0 (723 octets)
-
Aucune licence
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0.0 |
