Need solution for this error

4 次查看(过去 30 天)
Olufemi Ologun
Olufemi Ologun 2022-1-14
编辑: Torsten 2022-1-14
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'

回答(1 个)

Torsten
Torsten 2022-1-14
编辑:Torsten 2022-1-14
First get a fid to open your file:
fid = fopen( filename )

类别

Help CenterFile Exchange 中查找有关 Low-Level File I/O 的更多信息

标签

产品


版本

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by