how to declare
1 次查看(过去 30 天)
显示 更早的评论
Hi All,
I would like to declare the following code in Matlab.
r = 4/pi atan((R-G)/(R+G))
Any one please help.
Thanks,
Pugazh
0 个评论
采纳的回答
William
2012-2-10
Do you have the symbolic toolbox? If yes than
syms R G
r = 4/pi * atan((R-G)/(R+G));
else you're more than likely going to hve to define R and G in terms of domains. For example
R = 0:0.01:1;
G = 0:0.1:10; %Make sure the matrix dimensions agree.
r = 4/pi * atan((R-G)/(R+G));
Matrix manipulation is what matlab was designed to do at its basic level. the symbolic stuff is an add on that works pretty well.
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!