How to create matrix?

what is the code that can i create matrix n*m, where m is the pulse number and n is pulse length for a real data. Here is an example 3 pulses.The data I want is when the ‘lowSignal’ vector is equal to 1. I attached the data file and the matlab code.
load TX_DATA.mat
signal = TX(1:1400000);
subplot(3,1,1);
plot(signal);
grid on;
% MAIN CODE IS THE FOLLOWING TWO LINES OF CODE.
% Threshold the signal
lowSignal = abs(signal) < 0.04;
% Remove stretches less than 10,000 elements long.
% And invert it to get the high signal areas instead of the quiet areas.
lowSignal = ~bwareaopen(lowSignal, 10000);
% Now we're done. Plot the results.
subplot(3,1,2);
plot(lowSignal, 'b-', 'LineWidth', 2);
grid on;
% Plot both on the same graph now.
subplot(3,1,3);
plot(signal, '-', 'Color', [0,.5,0]);
hold on;
plot(lowSignal, 'b-', 'LineWidth', 2);
grid on;

댓글 수: 1

Abhishek Pandey
Abhishek Pandey 2015년 8월 7일
Hi Mansour,
Your question is not very clear. Could you please elaborate some more so that we know what you intend to do here. I believe an example with a smaller set of data would be very helpful.
- Abhishek

답변 (0개)

이 질문은 마감되었습니다.

질문:

2015년 8월 5일

마감:

2023년 9월 25일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by