- 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 (최근 30일)
이전 댓글 표시
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
채택된 답변
Walter Roberson
2022년 9월 6일
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!