Need solution for this error

1 view (last 30 days)
Olufemi Ologun
Olufemi Ologun on 14 Jan 2022
Edited: Torsten on 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'

Answers (1)

Torsten
Torsten on 14 Jan 2022
Edited: Torsten on 14 Jan 2022
First get a fid to open your file:
fid = fopen( filename )

Categories

Find more on Programming Utilities in Help Center and File Exchange

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!