Error: Not enough input argument (line 6)

function L = QoS(Data,model,estR,estE)
load('HMMParam.mat');
S = xlsread('Dataset.xlsx');
model = model(1:size(Data,1));
model = model/max(model(:));
model = round(model);
R = logical(model);
T = Data(R,:);
G = zeros(sum(R),1);
for i = 1:sum(R)
Q = T(i,:);
Co = hmmdecode(Q,estR,estE);
Q = Q.*Co;
G(i) = sum(Q);
end
L = 1 - mean(G);
end

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 7 月 19 日
編集済み: KALYAN ACHARJYA 2019 年 7 月 19 日

0 投票

Pass the inputs to the function Data,model,estR,estE.
  1. Save the function file in same directory
  2. Call the function from different m script
%Define all parameters
Data=
model=
estR=
estE=
y=QoS(Data,model,estR,estE)
Read about custom function call here
or if you want to run function from editor, look at here

この質問は閉じられています。

質問済み:

2019 年 7 月 19 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by