'Character vector is not terminated properly' when I am trying to open a .fis file in MATLAB

35 views (last 30 days)
I am trying to open my mandami fis which i have saved, and when i try to import it to the fuzzy logic designer I get an error sayinf that the 'character vector is not terminated properly'
Does anyone know a solution to this?
  1 Comment
Hoang Mai
Hoang Mai on 8 Jun 2023
I think there is a problem in limited range of fuzzy variables. The values of the solution may be outside of area of the varibles in definition. You could recheck the variables domain and save fuzzy file, export to workspace and redo simulation. Brg.

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 21 Nov 2019
Edited: Arkadiy Turevskiy on 19 Jun 2024
You likely either forgot a closing single quotation mark (') or you inserted one in error.
Without seeing your code, it is not possible to give a definitive solution.
Update by Kishen Mahadevan at MathWorks on 6/19/2024
Opening a saved .fis file calls the “readfis” command from Fuzzy Logic Toolbox - if the saved .fis file is manually edited, you can encounter unexpected errors such as this one. Having said that, if you are encountering this issue without manually modifying the .fis file, please reach out to MathWorks Technical Support with your .fis file and we can assist you further.
  5 Comments
Saumitra Rai
Saumitra Rai on 2 Apr 2021
I am gettign the same error 'Charcter vector not terminated properly'. I have not written any code. I am trying to open the file using Import command in the FIS interface on MATLAB. What should I do?
michael Nahole
michael Nahole on 24 Sep 2021
Same here. What is the actual solution to this problem? I tried saving my workspace for my simulink model. But on reopening simulink and loading the workspace. My seguno FIS is missing. I always have to redo the seguno file but the Mamdani FIS file has no problem
Please help

Sign in to comment.

More Answers (0)

Categories

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!