How to save Char from Structure into Array MATLAB
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I hope you are doing well. I have the following Dataset which is basically in Structure form.
I want to save the ClassName array of two rows and one column using for loop
I have tried the following code But the codes does not work. Can any body help me with that
load ('Dataset.mat')
for i =1:length(Dataset)
ClassificationResult=Dataset(i).ClassName
OverallResult(i)=ClassificationResult;
end
0 commentaires
Réponses (1)
Stephen23
le 5 Avr 2023
S = load('Dataset.mat');
D = S.Dataset
T = string({D.ClassName})
Voir également
Catégories
En savoir plus sur Matrices and Arrays 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!