Invalid file identifier. Use fopen to generate a valid file identifier.
Show older comments

7 Comments
the cyclist
on 25 Feb 2021
Edited: the cyclist
on 25 Feb 2021
What's your question?
From your screenshot, I would suggest that you have provided an invalid file identifier to the function solve_TFB, and you should generate a valid identifier using fopen.
I realize that that is not very helpful advice ... but you really haven't given us any relevant information to help more than that. Maybe read the documentation for fopen?
I don't recognize solve_TFB as a MATLAB function provided by MathWorks, and neither does Google. Where does that come from?
Kavin Bharathi Vijayakumar
on 25 Feb 2021
the cyclist
on 25 Feb 2021
OK. Presumably the first argument should be a file id, as output by the fopen command. Your screenshot doesn't really show how you are calling the function. (It's generally better to share copy/pasted code and error messages, not screenshots.)
Kavin Bharathi Vijayakumar
on 25 Feb 2021
Kavin Bharathi Vijayakumar
on 25 Feb 2021
the cyclist
on 25 Feb 2021
It's not clear to me what the solve_TFB file is expecting, but what you've done here does seem correct. Does
help solve_TFB
provide any information?
By default calling help on a p-file will not provide information, unless they also provided an accompanying m-file with just the help info.
Walter Roberson
on 25 Feb 2021
File Absatz_Biegung.inp does not exist in the current directory, or cannot be opened.
Answers (1)
Aditya Jha
on 14 Nov 2022
0 votes
Hi!
The problem seems to have occurred because the file does not exist or cannot be opened.Try providing the correct path to the file “Absatz_Biegung.inp”.
Even after providing the correct path to input file, if it does not work, then refer to the documentation of “fopen“ and try passing fileID for the inputFile parameter.
1 Comment
Walter Roberson
on 14 Nov 2022
Oh and use fullfile() instead of concatenation of character vectors for directory and file name. The \ separator is not valid in Linux or MacOS
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!