# MATLAB Phase-stepping Interferometry & MATLAB

#### n0_3sc

1. The problem statement, all variables and given/known data
I am given 4 files containing the intensities of a fringe pattern with phase-steps of $$\pi/2$$.
I need to do a mesh plot (on MATLAB) of the intensities and phase.

2. Relevant equations

$$I=A+Bcos(\phi)$$

3. The attempt at a solution

I came up with the following equations:
$$I_1=A+Bcos(\phi)$$
$$I_2=A+Bcos(\phi+\pi/2)$$
$$I_3=A+Bcos(\phi+\pi)$$
$$I_4=A+Bcos(\phi+3\pi/2)$$

After the math I get either:
$$I_4-I_3+I_2-I_1 = 0$$
or
$$0.5(I_4-I_3-I_2+I_1) = B(sin\phi + cos\phi)$$

Obviously the first is not usable because I can't create a plot and the second contains 'B' in it - which doesn't help since I don't know what B is.
Any suggestions at all?

Related Math Software Workshop News on Phys.org

### Want to reply to this thread?

"Phase-stepping Interferometry & MATLAB"

### Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving