Info

This question is closed. Reopen it to edit or answer.

Need help using solve

1 view (last 30 days)
Augusto
Augusto on 13 Jan 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi everyone, i'm new to solve command on matlab. I explain you what I have to do. I a numerical function based on some measurement and another function matematically calculated. I have to find 3 parameters for which the two functions will be very similar, nearly coincide.Here is what i tried:
if true
syms el_ant az_ant mean_value
S = solve(sqrt((el(1,1:3)-el_ant).^2+(az(1,1:3)-az_ant).^2)+mean_value-curve_LP(1,1:3) <= 0.1, el_ant, az_ant, mean_value);
end
It should be a 4 equation in 4 variables system. but what I get is:
if true
Warning: Could not extract individual solutions. Returning a MuPAD set object.
> In solve>assignOutputs at 219
In solve at 193
end
Please every suggestion will be greatly appreciated. Thanks in advance, Augusto
also tried:
if true
S = solve(sqrt((el(1,1)-el_ant)^2+(az(1,1)-az_ant)^2)+mean_value-curve_LP(1,1) <= 0.1,...
sqrt((el(1,2)-el_ant)^2+(az(1,2)-az_ant)^2)+mean_value-curve_LP(1,2) <= 0.1,...
sqrt((el(1,3)-el_ant)^2+(az(1,3)-az_ant)^2)+mean_value-curve_LP(1,3) <= 0.1,...
el_ant, az_ant, mean_value);
end
and same errors reported.

Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!