필터 지우기
필터 지우기

Sample a waveform at rate of 1pico second

조회 수: 1 (최근 30일)
Mysurareddy Yerramreddy
Mysurareddy Yerramreddy 2021년 3월 18일
댓글: Mysurareddy Yerramreddy 2021년 3월 27일
I had the waveform for a time duration 0f 2.5micro sec (attached). I need to sample this waform for every 1 pico second and store the data in matrix form of size 50 by 50000. Kindly suggest a solution to this problem.

답변 (1개)

Arthi Sathyamurthi
Arthi Sathyamurthi 2021년 3월 23일
Based on the information you have shared; I believe you acquired the waveform by plotting a workspace variable. Then it should contain a set of values, since computation takes place on a discrete set of values. In case it contains more than 2.5e6 values you can retrieve values for every 1 ps. But in case it is less than that, interpolate the signal such that it has minimum number of discrete values in the data and then try to sample (retrieve) the values. You can use the interpolation function, interp1 to do a 1-D data interpolation. In case you are getting it from a continuous signal source also, Matlab gets the value and stores it as a data. Try to find the variable and then try to sample for every picosecond.
If this is not what you are looking for could you, please provide a detailed explanation on how you got the waveform along with the code you have tried so that we can replicate the issue.
  댓글 수: 3
Arthi Sathyamurthi
Arthi Sathyamurthi 2021년 3월 26일
The simplest way to find the non-zero value present in the csv file is by using the find function. This function returns the indices of the non-zero values. Find the non-zero values present using the indices as array(indices). If the values in the csv file aren’t exactly zero, compare the array to a minimum threshold and then find the indices.
Mysurareddy Yerramreddy
Mysurareddy Yerramreddy 2021년 3월 27일
Thank you for the response.

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

카테고리

Help CenterFile Exchange에서 Bartlett에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by