- https://www.mathworks.com/help/matlab/math/creating-and-concatenating-matrices.html#OverviewCreatingAndConcatenatingExample-3
- https://www.mathworks.com/help/fuzzy/mamfis.evalfis.html#d126e31889
- https://www.mathworks.com/help/fuzzy/mamfis.evalfis.html#mw_26d12584-2352-46e3-802b-9dca88b66944
How I can evaluate 5 input matrices (208*216 numeric matrix table) evalfis(fis,inputs)
1 次查看(过去 30 天)
显示 更早的评论
It gives error
Input data must have as many columns as input variables and as many rows as independent sets of input values.
>> a = readfis('Suitability');
inputs=([slope_matris jeo_matris pop_matris land_matris stream_matris]);
>> evalfis(a,[slope_matris jeo_matris pop_matris land_matris stream_matris]);
0 个评论
回答(1 个)
Gowtham
2023-10-13
Hello Berna,
I understand you encountered an error while using the 'evalfis' function on five input matrices of size 208 x 216 each. The error is related to the number of rows and columns in the input data.
To resolve this issue, we need to specify the input combinations for evaluation using an array that has one row per input combination.
I suggest concatenating the matrices using a semicolon (;) to ensure the dimension matches the expected format. This will allow the 'evalfis' function to process the input matrices correctly.
For a sample demonstration of the above process, kindly refer to the following code snippet:
fis = readfis('tipper');
% 'tipper' expects each input with dimension (1, 2)
% sample with 3 input matrices
res = evalfis(fis, [1 2; 3 4; 5 6])
Kindly refer to the following MATLAB documentation for further information on how to use ‘evalfis’ and to concatenate matrices.
Hope this helps.
Best Regards,
Gowtham
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Clustering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!