Why I am getting the error "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."

for i = 1:NF
err_frame(:,i) = err'((i-1) * (1-OLR) + 1(i-1) * frame_length * (1-OLR) + frame_length);
end

 採用された回答

VBBV
VBBV 2021 年 5 月 11 日
%if true
for i = 1:NF
err_frame(:,i) = err((i-1) * (1-
% ^ ' is used for transpose
OLR) + 1*(i-1) * frame_length * (1-
% ^ implied multiplication
OLR) + frame_length);
end

2 件のコメント

% ^ ' is used for transpose
I use it for transpose
VBBV
VBBV 2021 年 5 月 11 日
編集済み: VBBV 2021 年 5 月 11 日
Yes. But use it at end of vector or Matrix like below
%if true
err(..).'
Not beginning

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2021 年 5 月 11 日

編集済み:

2021 年 5 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by