- possibly the fopen() failed
- possibly the fopen worked but you did not assign it to a variable named in
- possibly the fopen worked and you assigned to in but in was not declared global in the place it was assigned to
fscanf problem and get invalid file identifier
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
vaya putra
il 6 Set 2022
Risposto: Walter Roberson
il 6 Set 2022
base on handbook i write the fucntion as below.
but i am confuse why i got error
Error using fscanf
Invalid file identifier. Use fopen to generate a valid file identifier.
function [npoin,nelem,nvfix,ntype,nnode,ndofn,ndime,ngaus, ...
nstre,nmats,nprop,lnods, matno,coord,props,nofix, ...
iffix,fixed]=input_fem_elast();
format long;
global in;
global out;
%--- read the Control data:
npoin=fscanf(in,'%d',1);
0 Commenti
Risposta accettata
Walter Roberson
il 6 Set 2022
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Low-Level File I/O in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!