cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

RGB pattern

payman
14-Alexandrite

RGB pattern

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

4 REPLIES 4
MJG
18-Opal
18-Opal
(To:payman)

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

Fred_Kohlhepp
23-Emerald I
(To:payman)

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.

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.

Werner_E
25-Diamond I
(To:payman)

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.

Announcements

Top Tags