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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

RGB pattern

payman
13-Aquamarine

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
24-Ruby V
(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.

Top Tags