Need solution for this error

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 )

类别

帮助中心File 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