次のような一連のデータがあります。
!Sr.# x-coord. y-coord potential at (x,y)
1 0.0000 1.0000 0.3508
2 0.7071 0.7071 2.0806
. .... .... ....
. .... .... ....
1000 0.0000 -1.0000 0.5688
上記のデータの 2D 等高線を生成する必要があります。2D 等高線マップの対応する (x,y) 位置にポテンシャルの値がプロットされます。Matlab の等高線コマンドを使用して 2D 等高線をプロットできるようにするには、2D マトリックスを使用する必要があると思います (私の場合、基本的に潜在的な値が含まれます)。この場合の 2D マトリックスを作成するにはどうすればよいですか? または、2D マトリックスを完全に回避し、2D 輪郭を与えることができる回避策があります。私が持っている xy 座標データは特定の順序ではありませんが、必要に応じて配置できます。