matlab data how to read the fuzzy data in matlab ?

1 回表示 (過去 30 日間)
amal
amal 2024 年 9 月 6 日
コメント済み: Walter Roberson 2024 年 9 月 7 日
hi,
i want to read the following data in Matlab
  3 件のコメント
amal
amal 2024 年 9 月 7 日
Each element is pair of two floating point
Walter Roberson
Walter Roberson 2024 年 9 月 7 日
Are we to understand that you have a plain text file that starts with the line 'Table 1', and is followed by the line 'The car data set', and then by a line of underscores or dashes, and then by a list of variable names, then another line of underscores or dashes. And then to have a line of text that starts with text such as italic x followed by digits in subscript, and then text with pairs of numbers enclosed in () with a comma-space separating them?
How are the digits of subscripts represented in text? The Unicode block from U+208x does contain x (specifically x !) followed by single digits of numeric subscripts, but the block has no provision for subscript 10 and there is no block of numeric subscripts without the leading x

サインインしてコメントする。

回答 (1 件)

Sam Chak
Sam Chak 2024 年 9 月 6 日
I believe that you will have to manually enter the numeric data from the Table. I don't know, but two parameters might be related to the Gaussian membership functions.
  2 件のコメント
Sam Chak
Sam Chak 2024 年 9 月 7 日
This is just my interpretation. The data in the Table could mean something else.
fis = mamfis('Name', "Car");
% Fuzzy Input
fis = addInput(fis, [-0.5 1.5], 'Name', 'x2');
fis = addMF(fis, 'x2', 'gaussmf', [0.4, 0.3], 'Name', 'C1');
fis = addMF(fis, 'x2', 'gaussmf', [0.5, 0.1], 'Name', 'C2');
fis = addMF(fis, 'x2', 'gaussmf', [0.6, 0.2], 'Name', 'C3');
fis = addMF(fis, 'x2', 'gaussmf', [0.2, 0.7], 'Name', 'C4');
fis = addMF(fis, 'x2', 'gaussmf', [0.3, 0.6], 'Name', 'C5');
fis = addMF(fis, 'x2', 'gaussmf', [0.7, 0.2], 'Name', 'C6');
plotmf(fis, 'input', 1), grid on, title('Fuzzy sets for Car x2')
amal
amal 2024 年 9 月 7 日
Thanks

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFuzzy Logic in Simulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by