필터 지우기
필터 지우기

How to export Matlab Bathtub Curve to excel? I need in data format.

조회 수: 3 (최근 30일)
Zhe
Zhe 2022년 6월 15일
댓글: Walter Roberson 2023년 9월 29일
I wish to convert my Bathtub graph to data form, and plot it in excel.
Can anyone advice me how to export this graph data to excel? Thank you.
The code i used:
Fs = 10000;
Rs = 100;
sps = Fs/Rs;
SNR = 30;
Trise = 1/(5*Rs);
Tfall = 1/(5*Rs);
frameLen = 5000;
Tx = commsrc.pattern('SamplingFrequency', Fs, 'SamplesPerSymbol', sps, 'RiseTime', Trise, 'FallTime', Tfall);
Tx.Jitter = commsrc.combinedjitter('SamplingFrequency', Fs);
Tx.Jitter.DiracJitter = 'on';
Tx.Jitter.DiracDelta = 0.5e-3*[-1 1];
Tx.Jitter.RandomJitter = 'on';
Tx.Jitter.RandomStd = 0.3e-3;
message = generate(Tx, frameLen);
channel = comm.AWGNChannel('NoiseMethod', ...
'Signal to noise ratio (SNR)', ...
'SNR', SNR, 'SignalPower', 1);
Rx = channel(message);
eyeObj = comm.EyeDiagram('YLimits', [-1.5 1.5], ...
'SamplesPerSymbol', sps, ...
'SampleRate', Fs, ...
'SampleOffset', 0.004*Fs, ...
'DisplayMode', '2D color histogram', ...
'ColorScale', 'Logarithmic');
Error using comm.EyeDiagram
comm.EyeDiagram has been removed. Use eyediagram instead.
eyeObj.EnableMeasurements = true;
eyeObj.OverlayHistogram = 'Jitter';
eyeObj.ShowBathtub = 'Horizontal';
eyeObj(Rx);
show(eyeObj);
  댓글 수: 1
Walter Roberson
Walter Roberson 2023년 9월 29일
comm.EyeDiagram was removed in a recent version; you should update your code unless you forgot to tell us that you are using an old MATLAB version.

댓글을 달려면 로그인하십시오.

답변 (1개)

Akash
Akash 2023년 9월 29일
Hi Zhe,
I understand that you are looking to convert a graph into data form and export it from MATLAB to an Excel sheet.
The below mentioned discussions provide valuable insights on extracting and exporting data from MATLAB figures to Excel:-
Hope it helps.
Thanks,
Akash.

카테고리

Help CenterFile Exchange에서 Sources and Sinks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by