concatenate signals at specific index

조회 수: 3 (최근 30일)
kmbxrf
kmbxrf 2016년 12월 29일
답변: kmbxrf 2017년 1월 3일
I am wondering if there is a way to concatenate signals at specific indices. I have separate, distinct signals that I want to concatenate at specific times, which correlate to a specific index. Ultimately I want to "rebuild" a signal.

채택된 답변

KSSV
KSSV 2016년 12월 30일
clc; clear all ;
sig1 = rand(1,100) ;
sig2 = rand(1,1000) ;
% join two singals sig1 from 7 to 99 and sig2 from 100 to 700
sig12 = [sig1(7:99) sig2(100:700)] ;
We can merge/ join signals with ease if indices are known .
  댓글 수: 2
kmbxrf
kmbxrf 2016년 12월 30일
thank you! I suspected it was something simple. Too close to the problem and all that.
kmbxrf
kmbxrf 2017년 1월 3일
Ok, I spoke too soon. what I need to do is something similar to: sig3(t1:t2)=sigfull2(1:512,1)

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

추가 답변 (1개)

kmbxrf
kmbxrf 2017년 1월 3일
to clarify - what I need to do is something similar to: sig3(t1:t2)=sigfull2(1:512,1)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by