필터 지우기
필터 지우기

How can I create a variable consisting of data from other (1,1) datasets

조회 수: 2 (최근 30일)
Anders
Anders 2012년 12월 28일
Hi!
I have conducted several ttests originating from the same dataset, and would like to gather all the results in one variable, ex;
I now have the variables;
  • Pone
  • Ptwo
  • Pthree
  • Pfour
Which are all one by one matrices.
And would like to create a new varible that is a 1 by 4 matrix;
Pone Ptwo Pthree Pfour
I can ofcourse copy, paste but with many more ttests to come, it would be great to code the whole thing. Any help would be great!

답변 (2개)

Kye Taylor
Kye Taylor 2012년 12월 28일
newVariable = [Pone,Ptwo,Pthree,Pfour];
?

John Petersen
John Petersen 2012년 12월 28일
use an index
P(1) = Pone
P(2) = Ptwo
...

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by