<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'MATLAB Prog to find 4 Values from 5 Equations' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'MATLAB Prog to find 4 Values from 5 Equations' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Thu, 20 Jun 2013 05:24:06 -0700</pubDate>
    <lastBuildDate>Thu, 20 Jun 2013 05:24:06 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>MATLAB Prog to find 4 Values from 5 Equations</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/429689/429689/matlab-prog-to-find-4-values-from-5-equations/</link>
      <description>Hi, I have a problem in MATLAB. I am doing research in Optics ... I have to find 4 values from 5 equations and having some trouble. Kindly help. &lt;br /&gt;
&lt;br /&gt;
I have tried reg this as below: I would be grateful to have any suggestions. Thanks in advance.&lt;br /&gt;
&lt;br /&gt;
clear&lt;br /&gt;
&lt;br /&gt;
T = 0.89;&lt;br /&gt;
R = 0.11;&lt;br /&gt;
lamda = 0.98;&lt;br /&gt;
d = 1.65;&lt;br /&gt;
pi = 3.14;&lt;br /&gt;
phit = 0.6;&lt;br /&gt;
phir = 0.31;&lt;br /&gt;
%((-(a))*d) == (23.03)*k;&lt;br /&gt;
&lt;br /&gt;
% sym a b n k; % a and b are "alpha" and "beta"&lt;br /&gt;
&lt;br /&gt;
a = sym('a');&lt;br /&gt;
b = sym('b');&lt;br /&gt;
n = sym('n');&lt;br /&gt;
k = sym('k');&lt;br /&gt;
&lt;br /&gt;
eq1 = T == '({(1-R)^2+4*R*(sin(phir))^2}*exp((-a)*d))/((1-R*exp((-a)*d))^2+4*R*exp((-a)*d)*(sin(b+phir))^2)';&lt;br /&gt;
eq2 = (phit) == '((2*(pi)*n*d)/lamda)-(atan((k(n^2+k^2-1))/((k^2+n^2)*(2+n)*n)))+(atan((R*exp((-a)*d))*(sin2(b+phir))/(1-R*exp((-a)*d)*cos2(b+phir))))';&lt;br /&gt;
eq3 = (phir) == 'atan(((-2)*k)/(1-((n)^2)-((k)^2)))';&lt;br /&gt;
eq4 = (b) == '((2*(pi)*n*d)/lamda)';&lt;br /&gt;
eq5 = (a) == '((4*(pi)*k)/lamda)';&lt;br /&gt;
%eq6 = (e) == '((-(a))*d) == (23.03)*k';&lt;br /&gt;
&lt;br /&gt;
[a b n k] = solve(eq1,eq2,eq3,eq4,eq5,a,b,n,k);&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/429689/429689/matlab-prog-to-find-4-values-from-5-equations/</guid>
      <pubDate>Mon, 01 Oct 2012 22:17:43 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>