由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - 问个画图的插值问题
相关主题
问一个matlab的画图问题(大包子酬谢)怎么求这个转角?
急问一个Matlab画图问题Hermite interpolation
[转载] 问个matlab画图问题[转载] 求一个方程的解析解
问个matlab画图的问题[转载]侃侃计算数学 (数值逼近)
问个matlab画图问题求解两个联立的二阶常微分方程 (我的方程)
问个matlab画图的问题[转载] 我的论文标题的问题
derivative of the cubic spline interpolation resultsWho knows Sphere Packing simulation?
请教一个matlab问题,坐标系转换Interpolation求救,急!!!
相关话题的讨论汇总
话题: do话题: theta话题: sphere话题: circle
进入Computation版参与讨论
1 (共1页)
l******n
发帖数: 9344
1
我有很多的数据,是在一个球面上的概率分布函数,但是这些数据的坐标在纬度不
是equally spaced的,(经度是),而且在2极是附近时没有的
现在做图,希望能够用matlab的函数能够画出完整的图
有人知道那个函数比较?而且怎么做比较好看?
写了
r****y
发帖数: 1437
2
For each meridional circle, do interpolation to regular lat grid
then any map toolbox function, like surfm, contourm, can do the job.

【在 l******n 的大作中提到】
: 我有很多的数据,是在一个球面上的概率分布函数,但是这些数据的坐标在纬度不
: 是equally spaced的,(经度是),而且在2极是附近时没有的
: 现在做图,希望能够用matlab的函数能够画出完整的图
: 有人知道那个函数比较?而且怎么做比较好看?
: 写了

l******n
发帖数: 9344
3
I only want to make up the pole points to make it look like a whole sphe
re, and I do not want do interpolation to regular lat.
I am asking if there is a function in matlab can do this?
I think there is one, but could not remember
thanks

job.

【在 r****y 的大作中提到】
: For each meridional circle, do interpolation to regular lat grid
: then any map toolbox function, like surfm, contourm, can do the job.

r****y
发帖数: 1437
4
even you do not do interpolation, any plot command has to do it
by all means.
If you have no data at pole, how could you make it up?

【在 l******n 的大作中提到】
: I only want to make up the pole points to make it look like a whole sphe
: re, and I do not want do interpolation to regular lat.
: I am asking if there is a function in matlab can do this?
: I think there is one, but could not remember
: thanks
:
: job.

l******n
发帖数: 9344
5
that is why I ask for command which will do interpolation automatically

【在 r****y 的大作中提到】
: even you do not do interpolation, any plot command has to do it
: by all means.
: If you have no data at pole, how could you make it up?

r****y
发帖数: 1437
6
it just needs <=3 lines of code. If you cannot do this without
a command, no future la.

【在 l******n 的大作中提到】
: that is why I ask for command which will do interpolation automatically
l******n
发帖数: 9344
7
the problem is I did as you said, but the interpolation give NaN values
to me.
I am little confused by this.
The function I am computing is smooth on the sphere under the sphere coo
rdinates, it might be singular to (x,y,z) coordinates.

【在 r****y 的大作中提到】
: it just needs <=3 lines of code. If you cannot do this without
: a command, no future la.

r****y
发帖数: 1437
8
from what you said, you have to do interpolation for the whole
circle, not just one meridional curve, the half circle.
If you have no data above certain latitude band, no need to bother,
you are faking data in this sense. hoho.

【在 l******n 的大作中提到】
: the problem is I did as you said, but the interpolation give NaN values
: to me.
: I am little confused by this.
: The function I am computing is smooth on the sphere under the sphere coo
: rdinates, it might be singular to (x,y,z) coordinates.

l******n
发帖数: 9344
9
I did do whole circle interpolation.
Let me make it more clear.
suppose you are given a N by M matrix F, which is the values of the dens
ity function on the sphere, the corresponding coordinates are
x(i,j) = cos(theta(i))*cos(phi(j))
y(i,j) = cos(theta(i))*sin(phi(j))
z(i,j) = sin(theta(i))
I can plot the density on the sphere no problem, but as I said there are
holes in poles due to theta phi values.
For display purpose, I want to fix the wholes.
I want to change theta to THETA, which is equall

【在 r****y 的大作中提到】
: from what you said, you have to do interpolation for the whole
: circle, not just one meridional curve, the half circle.
: If you have no data above certain latitude band, no need to bother,
: you are faking data in this sense. hoho.

1 (共1页)
进入Computation版参与讨论
相关主题
Interpolation求救,急!!!问个matlab画图问题
help! Fit envelope for a signal spectrum问个matlab画图的问题
请问谁有tricubic spline interpolation的子程序吗?derivative of the cubic spline interpolation results
a question about Theta(nlgn)请教一个matlab问题,坐标系转换
问一个matlab的画图问题(大包子酬谢)怎么求这个转角?
急问一个Matlab画图问题Hermite interpolation
[转载] 问个matlab画图问题[转载] 求一个方程的解析解
问个matlab画图的问题[转载]侃侃计算数学 (数值逼近)
相关话题的讨论汇总
话题: do话题: theta话题: sphere话题: circle