Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
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

Risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by