fimplicitの​XData/YDat​aの数を固定したい

2 views (last 30 days)
高木 範明
高木 範明 on 14 Nov 2023
Commented: 高木 範明 on 19 Nov 2023
fimplicitで陰関数の(x,y)である、XData/YDataの数を固定する方法が存在するのでしょうか?
MeshDensityで評価点を指定できるようですが、指定してもXData/YDataの数は、例えば式の係数を変えると変わってしまいます。
ご教示、お願いいたします。
  2 Comments
Dyuman Joshi
Dyuman Joshi on 18 Nov 2023
No, there does not seem to be any such way.
高木 範明
高木 範明 on 19 Nov 2023
Thanks your kind answer.
I understood that there is no way to fix (x,y) counts.

Sign in to comment.

Accepted Answer

COVAO
COVAO on 18 Nov 2023
fimplicitの実行例です。
MeshDensityの設定値から、評価点数が自動調整されるようです。
MeshDensityで、評価点の数を変えられますが、指定した陰関数や範囲によっては、XData,YDataの数と必ずしも一致はせず、また、評価点数の制約があり、制約を超える値を指定しても、細かくできないものと考えられます。
fimplicit(@(x,y) x.^2 - y.^2 - 1,[-100 100 -100 100],'*','MeshDensity',10)
fimplicit(@(x,y) 2*x.^2 - y.^2 - 1,[-100 100 -100 100],'*','MeshDensity',10)
fimplicit(@(x,y) x.^2 - y.^2 - 1,'*','MeshDensity',100)
fimplicit(@(x,y) x.^2 - y.^2 - 1,'*','MeshDensity',300)
  1 Comment
高木 範明
高木 範明 on 19 Nov 2023
詳細なご説明をありがとうございました。
XData,YDataの数を固定することはできないとの事、理解いたしました。
XData,YDataをそれなりの数、生成させて、乱数で必要数を選択するという
方法で数をそろえることにします。

Sign in to comment.

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!