Undefined function 'quorem' for input arguments of type 'double'

9 ビュー (過去 30 日間)
liu James
liu James 2016 年 12 月 7 日
編集済み: KSSV 2016 年 12 月 7 日
I'm getting this error when I run the file. The quorem seems to be a function when I search in help so I don't understand why I'm getting this error. help
Undefined function 'quorem' for input arguments of type 'double'. Error in Test1 (line 13) [q, r] = quorem(nRowh,20)
clear
load A_Day.mat
fts1 = fints(Time,Data,{'Open','High','Low','Close'})
close = fts2mat(fts1.Close)
high = fts2mat(fts1.High)
low = fts2mat(fts1.Low)
middle=(high+low)/2;
dates=datenum(Time);
window_size=20;
[nRowh,nColh]=size(high);
[q, r] = quorem(nRowh,20)

採用された回答

KSSV
KSSV 2016 年 12 月 7 日
編集済み: KSSV 2016 年 12 月 7 日
use
[q, r] = quorem(sym(nRowh),sym(20))
quorem works on symbolic variables. Convert your double to sym using sym

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumber Theory についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by