Need solution for this error

21 vues (au cours des 30 derniers jours)
Olufemi Ologun
Olufemi Ologun le 14 Jan 2022
Modifié(e) : Torsten le 14 Jan 2022
Error using fscanf
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in egm3dinvert (line 42)
bou=fscanf(fid,'%f',[numcolumns numrows]); %open the input gravity file, read it and stores it in variable 'bou'

Réponses (1)

Torsten
Torsten le 14 Jan 2022
Modifié(e) : Torsten le 14 Jan 2022
First get a fid to open your file:
fid = fopen( filename )

Catégories

En savoir plus sur Low-Level File I/O dans Help Center et File Exchange

Produits


Version

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by