MATLAB Answers

Rank deficient error.

3 views (last 30 days)
Emre Mutlu
Emre Mutlu on 21 Jul 2021
Answered: Matt J on 21 Jul 2021
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((*k.^3+(par.rho2-par.rho1)*par.g.*k)/(par.rho1*coth(k.*par.h1)+par.rho2*coth(k.*par.h2)));
Thanks in advance :)

Accepted Answer

Matt J
Matt J on 21 Jul 2021
Are you attempting to do matrix division? if not use ./ instead.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by