如何在theta中用theta/rho数据绘制线 [英] How to plot line in matlab with theta/rho data

查看:306
本文介绍了如何在theta中用theta/rho数据绘制线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为标题

我只有theta/rho数据

I only have the theta/rho data

线方程是

x*cos(theta)+y*sin(theta)=rho

如何在matlab中绘制这些数据所在的线?

how to plot line whith these data in matlab?

有没有输入theta和rho的函数?

are there any function which input are theta and rho?

谢谢

推荐答案

只需使用一些简单的代数,即可了解 y x 的关系.
为x取一些范围:

Just use some simple Algebra to find out how y is related to x.
Take some range for x:

 x = -10:10;
 y = (rho - x* cos(theta) )/ sin(theta);
 plot(x,y)

这篇关于如何在theta中用theta/rho数据绘制线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆