- Are the samples stored in a data file, or have you already brought them into the MATLAB Workspace?
- If in a data file, what is the format of the file?
- If in the Workspace, what is (are) the name(s) of the variable(s) in which the data is stored? How many rows and columns are in each variable?
- How many samples do you have for each of the three phases?
- What is the sampling rate of the data?
- What do you mean by the term "segment"?
- What types of computations and/or visualizations do you want to do with the data?
- Are you using MATLAB or Simulink (or both)?
- What Toolboxes and Blocksets do you have?
processing signal
1 view (last 30 days)
Show older comments
hi sir,
i got the voltage samples of three phases
sir how to segment these voltage samples
thanku sir
0 Comments
Accepted Answer
Rick Rosson
on 1 Sep 2011
Can you please answer the following questions?
I would be happy to help you if you can provide all of this information.
Thanks!
Rick
2 Comments
Walter Roberson
on 1 Sep 2011
Please expand on what you mean by "piecewise distribution" in this context ?
More Answers (1)
Rick Rosson
on 1 Sep 2011
I will assume that v is a 2500 x 3 matrix where each column is one of the three phases of electrical power. I will also assume that there is a known sampling rate (in samples per second) stored in a scalar variable Fs.
For the purposes of this answer, I will assume that the value of Fs is 500 samples per second, so that the 2500 samples of data represents 5 seconds of time.
So, the MATLAB code might be:
M = size(v,1);
Fs = 500;
dt = 1/Fs;
t = dt*(0:M-1)';
figure;
plot(t,v);
grid on;
xlabel('Time (in seconds)');
ylabel('Amplitude (in volts)');
title('Three-Phase Electrical Power');
legend('Phase 1','Phase 2','Phase 3');
HTH.
Best regards,
Rick
0 Comments
See Also
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!