Error returned in Eigs Function " Undefined operator '.*' "

13 ビュー (過去 30 日間)
Wulfran Deberdt
Wulfran Deberdt 2018 年 9 月 17 日
回答済み: Wulfran Deberdt 2018 年 9 月 24 日
Hello !
However, it returns error. I ran line by line until finding the problem line, it is this one :
% e = eigs(A,B,50,'LR');
Which returns a triple error :
% Undefined operator '.*' for input arguments of type 'operatorBlock'.
%
% Error in @(x,u)(diff(u,4)-2.*diff(u,2)+u)./Re-2i.*u-1i.*diag(1-x.^2).*(diff(u,2)-u)
%
% Error in chebop/feval (line 190)
% out = N.op(x, u);
%
% Error in chebop/linearize (line 150)
% Nu = feval(N, x, u{:});
%
% Error in chebop/eigs (line 59)
% [L, ~, isLinear, u0] = linearize(N, N.init, [], linCheck);
Does anyone has an idea for the origin of these errors ?
Thanks.
Wulfran Deberdt, last semester's project at UC Berkeley
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 9 月 21 日
Make sure you get the current version of the code from https://github.com/chebfun/chebfun

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

回答 (2 件)

Andrew Knyazev
Andrew Knyazev 2018 年 9 月 21 日
編集済み: Walter Roberson 2018 年 9 月 21 日
Looks like a bug in chebfun - just make this comment at https://www.mathworks.com/matlabcentral/fileexchange/47023-chebfun-current-version for the chebfun authors to see and react.

Wulfran Deberdt
Wulfran Deberdt 2018 年 9 月 24 日
Thank you but I found the problem, just have to withdraw the built-in function "diag"

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by