Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Anders
Anders le 28 Déc 2012
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!

Réponses (2)

Kye Taylor
Kye Taylor le 28 Déc 2012
newVariable = [Pone,Ptwo,Pthree,Pfour];
?

John Petersen
John Petersen le 28 Déc 2012
use an index
P(1) = Pone
P(2) = Ptwo
...

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by