To get 6 inputs from users in MATLAB, you can use the input function. Here's an example code snippet to get the 3 voltage phasors and 3 current phasors:
main.m311 chars10 lines
After obtaining the input phasors, you can plot them using the quiver function in MATLAB. Here's an example code snippet to plot the phasors:
main.m557 chars20 lines
To find the sequence components (positive sequence, negative sequence, and zero sequence) of the phasors, you can use the seqcomp function from the Signal Processing Toolbox in MATLAB. Here's an example code snippet to calculate the sequence components:
main.m183 chars8 lines
By combining the phasors into matrices, you can easily calculate the sequence components using the seqcomp function. The positive sequence component will be stored in v_pos and i_pos, the negative sequence component in v_neg and i_neg, and the zero sequence component in v_zero and i_zero.
I hope this helps! Let me know if you have any further questions.
gistlibby LogSnag