I have two datasets and I want to put them in one struct

1 vue (au cours des 30 derniers jours)
Taha Alars
Taha Alars le 18 Avr 2019
Commenté : Image Analyst le 18 Avr 2019
the photo shows example of how I want to make the struct. basically I have cst1 & cst2 and I want to put them in one struct just like the photo(features & labels)
s.jpg

Réponses (1)

Image Analyst
Image Analyst le 18 Avr 2019
Try
s = load('cst1.mat');
data.cst1 = s.cst1;
s = load('cst2.mat');
data.cst2 = s.cst2;
  2 commentaires
Taha Alars
Taha Alars le 18 Avr 2019
I am getting this erorr
Reference to non-existent field 'cst1'.
Error in Usdntitled (line 2)
data.cst1 = s.cst1;
Image Analyst
Image Analyst le 18 Avr 2019
Try
s = load('cst1.mat');
data.cst1 = s.data;
s = load('cst2.mat');
data.cst2 = s.data;

Connectez-vous pour commenter.

Catégories

En savoir plus sur Workspace Variables and MAT-Files 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