How can I get all possible coordinate from implicit function ?

3 ビュー (過去 30 日間)
Teerapong Poltue
Teerapong Poltue 2020 年 11 月 5 日
コメント済み: Teerapong Poltue 2020 年 11 月 5 日
How can I get all possible coordinate (x,y,z) from this function function
cos(x) + cos(y) + cos(z) = 0
I've tried this but, it did work.
syms X Y Z z
counter = 1;
for x = -5:5
for y = -5:5
Data.X(counter) = x;
Data.Y(counter) = y;
Data.Z(counter) = solve(cos(x) + cos(y) + cos(z) == 0,z);
counter = counter + 1 ;
end
end

採用された回答

Sean de Wolski
Sean de Wolski 2020 年 11 月 5 日
編集済み: Sean de Wolski 2020 年 11 月 5 日
zz = acos(-(cos(-5:5)+cos((-5:5).')))
% Check
norm(cos(-5:5) + cos((-5:5).') + cos(zz))

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by