Clear Filters
Clear Filters

How to solve "Input values must be specified with a matrix of double or single values." error

4 views (last 30 days)
Good day! I created an anfis model to predict risk level and type of certain disease. For risk level (rfis) it has 19 inputs and for type (tfis) it has 5 inputs. Inputs are all in numeric type and came from the html ui. This is the code i made in matlab web app designer.
% Data changed function: Assessment
function AssessmentDataChanged(app, event)
data = event.Data;
rfis = readfis('riskFis.fis');
tfis = readfis('typeFis.fis');
riskInput = [data.Age data.Temp data.Lung data.Heart data.Diabetes data.HIV data.Cough data.Chemo data.Smoke data.Alcohol data.Chemical data.Swallow data.Sweating data.Breathe data.Chest data.Appetite data.Fatigue data.Nausea data.Confusion];
riskOutput = evalfis(rfis, riskInput);
typeInput = [data.Age data.Temp data.Cough data.Hospital data.Ventilator];
typeOutput = evalfis(tfis, typeInput);
disp(riskOutput)
disp(typeOutput)
end
And this is the error i get in command window whenever i run the code
and this one is the error i received in matlab designer
I hope someone can help me

Answers (0)

Categories

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

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!