Info

此问题已关闭。 请重新打开它进行编辑或回答。

Replace variables twice ?

1 次查看(过去 30 天)
Tran Thien
Tran Thien 2018-5-16
关闭: MATLAB Answer Bot 2021-8-20
For example i got these codes
So in dS i want the zx and zy be replaced by diff(...) that i typed before And in zx and zy i want to replace them with rcosphi and rsinphi so the highlighted line in the command window will have rcosphi and rsinphi instead of x and y
  3 个评论
Tran Thien
Tran Thien 2018-5-16
编辑:Tran Thien 2018-5-16
Yes But my goal is to solve an intergral in which 'phi' is the variable so I want 'phi's in the highlighted funtion not x and y . I thought if i set x and y like that it will automically replace them with r*cos(phi) and r*Sin(phi) in all my functions
Geoff Hayes
Geoff Hayes 2018-5-17
Tran's answer moved here
Any help ?

回答(0 个)

此问题已关闭。

标签

产品


版本

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by