Holding a vector value for specific time

Click For Summary
SUMMARY

This discussion focuses on synchronizing two 1xn vectors, Xb and Xc, derived from signal processing, with different sampling rates. The vector Xb updates every 1/1.023e6 seconds, while Xc updates every 1/1.405e6 seconds. The user seeks a method to maintain the values of Xb constant over the sample time of Xc, specifically when the time falls within certain intervals. The challenge arises from the discrete nature of Xb, which is generated using modulo 2 addition, contrasting with the continuous nature of Xc, represented by a sine function.

PREREQUISITES
  • Understanding of signal processing concepts
  • Familiarity with vector operations in programming languages
  • Knowledge of sampling rates and time intervals
  • Experience with discrete and continuous signal representation
NEXT STEPS
  • Research methods for vector interpolation in MATLAB or Python
  • Learn about the resampling techniques for non-uniformly sampled signals
  • Explore the implementation of BPSK modulation in signal processing
  • Investigate the use of time-domain analysis for discrete signals
USEFUL FOR

Signal processing engineers, software developers working with vector data, and researchers focusing on synchronization of discrete and continuous signals will benefit from this discussion.

gryphon1221
Messages
9
Reaction score
0
I have been wracking my brain trying to figure this out. I have a 1xn vector I have gained through signal processing. I am multiplying it to another 1xn vector with a different scale.

the first vector Xb moves to the next value every 1/1.023e6 seconds
the second vector Xc moves to the next value every 1/1.405e6 seconds.

I am looking for a way that I can transform keep Xb's 1xn dimension, but hold the values over a sample time of 1/1.405e6 seconds. for example the first ten values of:

Xb=[-1 1 -1 -1 -1 -1 1 1 -1 -1]
Xc=[0 1.41373858718699, 0.0732749615049943, -1.40994069977540, -0.146353076113111, 1.40235512765087, 0.219038025739767, -1.39100224880207, -0.291134548504378, 1.37591256176390]

The time scale difference makes it so Xb has the same value for the first 6 values of Xc, but this is not a constant feature when comparing the vectors. Does anybody have a clue how to do this?
 
Physics news on Phys.org
I looked at resample. The problem is that the Xb code is just made with modulo 2 addition and has no real time. Xc is a continuous sin(2*pi*f1*t) where f1 is a frequency at t is taken every 1/5.714286e6 seconds. Xb is just a number of discrete values (a BPSK signal).

In reality Xb changes every 1/1.023e6 seconds. I want to hold the values of Xb constant whenever t falls somewhere in between (count-1)/1.023e6<=t<count/1.023e6, where the count moves up to the next value in Xb every time t exceeds count/1.023e6
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K