Skip to main content
1-Visitor
November 10, 2016
Question

RGB pattern

  • November 10, 2016
  • 3 replies
  • 1763 views

Hello,

Would you please help me to create an RGB pattern in (theta-d) plane from Ired, Igreen and Iblue? In the attached program I have included a similar pattern that I obtained from Matlab code.

Thank you very much.

Payman

3 replies

1-Visitor
November 10, 2016

Attached is my attempt.  Not sure if I'm on the right track or not.

23-Emerald I
November 10, 2016

I think the problem is here:

Your calculation of phi depends on x who's values are 593, 493, and 399.  These values are scaled by multiplying by j (between 0 and 1200.)  These radians are then used with the intensity to set I.

I don't believe you mean to have phi vary that widely.

1-Visitor
November 10, 2016

Good point.  I decided to scale down x to see what would happen.  If I use x/10000, I get:

Not exactly what OP showed from Matlab, but much closer.

25-Diamond I
November 10, 2016

I also played with a scaling factor, but Mark was faster.

For whats it worth here's my attempt.

The colors don't match those from the MatLab picture.