필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to create matrix?

조회 수: 4 (최근 30일)
Mansour Aljohani
Mansour Aljohani 2015년 8월 5일
마감: Sabin 2023년 9월 25일
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개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by