필터 지우기
필터 지우기

combine two set of data

조회 수: 4 (최근 30일)
Cody
Cody 2012년 3월 16일
Hi As, shown below, I can generate two sets of data.
R1 = normrnd(1,0.05,1,6)
R1 =
0.9861 1.0351 0.8974 0.9823 0.9588 0.9211
>> R2 = normrnd(0.5,0.05,1,6)
R2 =
0.5254 0.5141 0.5017 0.4333 0.5564 0.5175
I want to combine them into one like this:
Thk= [0.9861, 0.5254, 1.0351, 0.5141, 0.8974, 0.5017, 0.9823, 0.4333, 0.9588, 0.5564, 0.9211 , 0.5175]
How can I do this?
Thanks a lot.

답변 (1개)

Oleg Komarov
Oleg Komarov 2012년 3월 16일
thk = [R1; R2];
thk = thk(:).';

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by