How to solve "Input values must be specified with a matrix of double or single values." error
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!