| 查看: 441 | 回复: 4 | |||
| 当前主题已经存档。 | |||
| 【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 positron 的 10 个金币 | |||
[交流]
【讨论】matlab中slice函数切片显示时的切片方向
|
|||
|
matlab中slice函数可以完成四维函数的绘制,但切片命令中slice(x,y,z,v,x1,y1,z1)只能对垂直于坐标轴的方向切片,即slice(x,y,z,v,x1,y1,3)切z=3的剖面,如没有可能切任意的方向,和坐标轴的夹角可以任意设定呢? 学习slice函数过程中联想到的,不知可有人碰到这个问题,呵呵 |
» 猜你喜欢
Bioresource Technology期刊,第一次返修的时候被退回好几次了
已经有7人回复
2025冷门绝学什么时候出结果
已经有4人回复
真诚求助:手里的省社科项目结项要求主持人一篇中文核心,有什么渠道能发核心吗
已经有8人回复
寻求一种能扛住强氧化性腐蚀性的容器密封件
已经有5人回复
请问哪里可以有青B申请的本子可以借鉴一下。
已经有4人回复
孩子确诊有中度注意力缺陷
已经有14人回复
请问下大家为什么这个铃木偶联几乎不反应呢
已经有5人回复
请问有评职称,把科研教学业绩算分排序的高校吗
已经有5人回复
天津工业大学郑柳春团队欢迎化学化工、高分子化学或有机合成方向的博士生和硕士生加入
已经有4人回复
康复大学泰山学者周祺惠团队招收博士研究生
已经有6人回复
★ ★ ★
0112358(金币+3):现在大家都放假了,来的人相对较少,鼓励这样的讨论,水区毕竟不是干事的地方,以后多来程序版吧,呵呵
0112358(金币+3):现在大家都放假了,来的人相对较少,鼓励这样的讨论,水区毕竟不是干事的地方,以后多来程序版吧,呵呵
|
好像大家都不讨论,不知道是人气差还是讨论没意思 都去水区了么,哈哈 刚才去mathworks看了下(实在不想看英文,嗯) 还是找到了答案 Slicing At Arbitrary Angles You can also create slices that are oriented in arbitrary planes. To do this, * Create a slice surface in the domain of the volume (surf, linspace). * Orient this surface with respect to the axes (rotate). * Get the XData, YData, and ZData of the surface (get). * Use this data to draw the slice plane within the volume. For example, these statements slice the volume in the first example with a rotated plane. Placing these commands within a for loop "passes" the plane through the volume along the z-axis. for i = -2:.5:2 hsp = surf(linspace(-2,2,20),linspace(-2,2,20),zeros(20)+i); rotate(hsp,[1,-1,1],30) xd = get(hsp,'XData'); yd = get(hsp,'YData'); zd = get(hsp,'ZData'); delete(hsp) slice(x,y,z,v,[-2,2],2,-2) % Draw some volume boundaries hold on slice(x,y,z,v,xd,yd,zd) hold off axis tight view(-5,10) drawnow end The following picture illustrates three positions of the same slice surface as it passes through the volume. |
2楼2009-08-02 10:00:47
3楼2009-08-02 10:01:47
change0618
铁杆木虫 (著名写手)
方丈大师
- 应助: 44 (小学生)
- 金币: 17724.5
- 红花: 17
- 帖子: 2413
- 在线: 546.7小时
- 虫号: 496517
- 注册: 2008-01-19
- 专业: 化学反应工程
4楼2009-08-02 10:51:45
woshilsh
荣誉版主 (职业作家)
- 应助: 43 (小学生)
- 贵宾: 10.33
- 金币: 21115.1
- 散金: 737
- 红花: 22
- 帖子: 3777
- 在线: 639.7小时
- 虫号: 293038
- 注册: 2006-11-04
- 专业: 计算机应用技术
- 管辖: 仿真模拟

5楼2009-08-02 15:35:48













回复此楼
捐给我吧