Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
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
Attached is my attempt. Not sure if I'm on the right track or not.
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.
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.