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

3 ビュー (過去 30 日間)
Jovelyn Obias
Jovelyn Obias 2021 年 11 月 15 日
編集済み: Jovelyn Obias 2021 年 11 月 15 日
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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by