how to eliminate the error

>> %input, generating 13 points on curve >> x=[-50 -41.2 -34.2 -27.13 -18.05 -6.94 -1.93*10.^(-33) 12.31 22.5 32.69 41.86 46.9 51.02];
>> y=[-5 -1.66 0.36 2.04 3.64 4.77 5 4.76 4.09 2.99 1.64 0.74 -0.0698];
>> %spline that interpolates (x,y) >> s=spline(x,y)
s =
form: 'pp'
breaks: [1x13 double]
coefs: [12x4 double]
pieces: 12
order: 4
dim: 1
>> %first derivative,pp form
>> s1=s; >> s1.order=s.order-1
s1 =
form: 'pp'
breaks: [1x13 double]
coefs: [12x4 double]
pieces: 12
order: 3
dim: 1
>> s1.coefs=bsxfun(@time,s1.coefs(:,1:end-1),s1.order:-1:1) ??? Error using ==> bsxfun Undefined function 'time' for input arguments of type 'double'.
what does this error means and how to solve it...??
Can any one help me.. in going furthest to find curvature

 採用された回答

Iman Ansari
Iman Ansari 2013 年 6 月 10 日

1 投票

@time ===> @times
s1.coefs=bsxfun(@times,s1.coefs(:,1:end-1),s1.order:-1:1)

3 件のコメント

DIVI CHANDANA
DIVI CHANDANA 2013 年 6 月 10 日
oo.. thank q sir..
DIVI CHANDANA
DIVI CHANDANA 2013 年 6 月 10 日
can u help me in solving curvature for this..???
Iman Ansari
Iman Ansari 2013 年 6 月 10 日
No.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeFuzzy Logic Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by