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