General > General Technical Chat
3D 3-phase Lissajous figure
Circlotron:
Just trying to visualise the above. Each phase is equal voltage, sinusoidal, and of course 120 deg apart. My thinking so far is that it would be a circle when viewed from the appropriate angle, and the angle that it would be tilted on would be if the circle was the largest circle that could be fitted inside a given sized cube. Any ideas on this?
daqq:
Sounds reasonable. I brewed up a quick bit of code for Octave/Matlab if anyone wants to play around.
--- Code: ---clc; clear;
Amps = [1, 1, 1];
Phases = [0, 120, 240];
Freqs = [1, 1, 1];
Npoints = 1000;
TMax = 3;
Time = linspace(0, TMax, Npoints);
Phases = pi * Phases / 180;
Freqs = 2 * pi * Freqs;
TPoints = Phases + (Time' .* Freqs);
Sines = Amps .* sin(TPoints);
X = Sines(:,1);
Y = Sines(:,2);
Z = Sines(:,3);
scatter3(X, Y, Z);
VMax = max(Amps);
axis([-VMax, VMax, -VMax, VMax, -VMax, VMax]);
--- End code ---
rstofer:
I get an operator error at line 15, column 19 (the .+ operator appears to be invalid in this context)
--- Code: ---TPoints = Phases .+ (Time' .* Freqs);
^^
--- End code ---
[/font]
daqq:
Are you using MATLAB? I'm running it on Octave, works fine. Changing it to just + from .+ still works.
Circlotron:
Interesting that the plot appears to be 45 deg to both the x and y planes and zero deg to the z plane. I intuitively thought it would be equal angles to all three planes. I have no expertise on these matters.
Navigation
[0] Message Index
[#] Next page
Go to full version