fscanf
📝 Syntax
📥 Input argument
📤 Output argument
📄 Description
Value type
format
comment
💡 Example
🔗 See also
🕔 History
Version
📄 Description
Last updated
Last updated
M = rand(3, 2);
fw = fopen([tempdir, 'example_fscanf.txt'], 'wt');
fprintf(fw, "%f %f %f", M);
fclose(fw);
fd = fopen([tempdir, 'example_fscanf.txt'], 'r');
R = fscanf(fd, "%g %g %g");
fclose(fd);
R