| 查看: 733 | 回复: 2 | |||
轻铃molly铜虫 (小有名气)
|
[求助]
怎样在origin里面显示切点的坐标?
|
| 8.5版本的,画出了拟合好的曲线和某一点的切线,怎样把切点坐标显示出来?求指教。谢谢! |
» 收录本帖的淘帖专辑推荐
Origin-数据处理 |
» 猜你喜欢
请问哪里可以有青B申请的本子可以借鉴一下。
已经有4人回复
真诚求助:手里的省社科项目结项要求主持人一篇中文核心,有什么渠道能发核心吗
已经有6人回复
孩子确诊有中度注意力缺陷
已经有14人回复
三甲基碘化亚砜的氧化反应
已经有4人回复
请问下大家为什么这个铃木偶联几乎不反应呢
已经有5人回复
请问有评职称,把科研教学业绩算分排序的高校吗
已经有5人回复
2025冷门绝学什么时候出结果
已经有3人回复
天津工业大学郑柳春团队欢迎化学化工、高分子化学或有机合成方向的博士生和硕士生加入
已经有4人回复
康复大学泰山学者周祺惠团队招收博士研究生
已经有6人回复
AI论文写作工具:是科研加速器还是学术作弊器?
已经有3人回复
eurekayan
荣誉版主 (知名作家)
三沙市名誉市长兼书记
- XEPI: 1
- 应助: 19 (小学生)
- 贵宾: 4.315
- 金币: 17589.3
- 散金: 21639
- 红花: 193
- 沙发: 46
- 帖子: 8758
- 在线: 2048.4小时
- 虫号: 1268233
- 注册: 2011-04-17
- 性别: GG
- 专业: 电化学
- 管辖: 课件资源

2楼2011-10-13 15:46:59
FANXH1987
木虫 (著名写手)
SLS
- 应助: 8 (幼儿园)
- 金币: 6759.2
- 散金: 1000
- 红花: 51
- 帖子: 1567
- 在线: 389.6小时
- 虫号: 1245017
- 注册: 2011-03-25
- 性别: GG
- 专业: 高分子物理与高分子物理化
【答案】应助回帖
轻铃molly(金币+1): 试了一下,只弹出一个Attention的对话框,不知道是不是因为我同时有多条切线的原因。谢谢你了! 2011-10-15 16:46:16
|
做出了切线和拟合的曲线,那就应该有两条线了,可以用originlab提供的一个Lab talk来实现 具体过程: 1.将下面的代码保存为custom.ogs,然后替换origin安装原始位置文件夹里的custom.ogs(不放心可以先保留一个备份) 代码: // Filename: Custom.ogs // Purpose: The Custom Routine button on the standard toolbar will use this code, by calling // the [Main] section // Modifications: [main] run.section(,init); run.section(,getdatasets); run.section(,intersect); [init] ////////////////////////////// // Initialize all Variables // ////////////////////////////// i=1; // init i in getnum j=2; // init j in getnum %Z=""; // init %Z to nothing aa1=1E270; // init aa1 (will hold y int for 1st fit) bb1=1E270; // init bb1 (will hold slope for 1st fit) aa2=1E270; // init aa2 (will hold y int for 2nd fit) bb2=1E270; // init bb2 (will hold slope for 2nd fit) xint=1E270; // init xint (will hold final x intersection value yint=1E270; // init yint (will hold final y intersection value %L=""; // string variable used for intersection label on graph [getdatasets] ////////////////////////////// // Get Datasets From User // ////////////////////////////// // compile list of available datasets in %Z doc -e D { %Z=%Z %C; // create a list of datasets for getnum by looping }; // execute getnum to obtain names of curves to compare getnum (Dataset 1) i:Z (Dataset 2) j:Z (Select Datasets); [intersect] ///////////////////////////////////////////// // Calculate and Report Intersection (X,Y) // ///////////////////////////////////////////// // perform linear regressions on selected datasets // and calculate the x intersection value and its y value stat.data$=%[%Z,#i]; // assigns 1st selected dataset for lin reg stat.lr(); // performs lin reg on 1st selected dataset aa1=stat.lr.a; // assigns 1st y intercept val to aa1 bb1=stat.lr.b; // assigns 1st slope val to bb1 stat.data$=%[%Z,#j]; // assigns 2nd selected dataset for lin reg stat.lr(); // performs lin reg on 2nd selected dataset aa2=stat.lr.a; // assigns 2nd y intercept val to aa2 bb2=stat.lr.b; // assigns 2nd slope val to bb2 xint=(aa2-aa1)/(bb1-bb2); // calculates x intersection value yint=aa1+(bb1*xint); //calculates corresponding y intersection value %L="Intersection at: ($(xint), $(yint))"; type %L; label -a (xint-5) yint -s -n intersection %L; 2.在graph窗口下点击那个类似offie宏默认图标的标签(三个矩形加中间一个菱形的标签,如果没有,在view-tools bar-button group - standard里可以找到,标签提示是:run custom.ogs···,这个标签是用来启用Custom.ogs文件里的内容的,和office自定义宏的用法很像) 3.在弹出的对话框里选择数据源,然后OK 测试只有一个交点时可以实现显示交点,几个交点的情况就不知道了,有个不好的地方时这个lab选择数据好像只能选择整个数据曲线,要是能像date selected功能可以随意选择就好了~~~ 你试一下吧!应该可以的(不行也可以给origin增加这个功能,呵呵),祝你成功 |

3楼2011-10-14 15:46:40













回复此楼