Rank deficient error.

5 ビュー (過去 30 日間)
Emre Mutlu
Emre Mutlu 2021 年 7 月 21 日
回答済み: Matt J 2021 年 7 月 21 日
I am trying to evaluate a function on some points. When I put in the points manually one by one there is no problem but as soon as I put the values as a vector Im getting the following error:
Warning: Rank deficient, rank = 0, tol = inf.
my code looks like this:
gm=@(k) sqrt((par.sg.*k.^3+(par.rho2-par.rho1)*par.g.*k)/(par.rho1*coth(k.*par.h1)+par.rho2*coth(k.*par.h2)));
k1=linspace(0,100);
gr=real(gm(k1));
gi=imag(gm(k1));
Thanks in advance :)

採用された回答

Matt J
Matt J 2021 年 7 月 21 日
Are you attempting to do matrix division? if not use ./ instead.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by