matlab中提取结构数组中的double数值。
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
centers2 struct(图1)
是我得到的结果,我想要提取其中type字段的所有数值,之前利用centers2.type只能提取出某一行的数据(下图),如果要将这些数据批量提取的话,请问该怎么操作呢?请大家帮助一下:( 
是我得到的结果,我想要提取其中type字段的所有数值,之前利用centers2.type只能提取出某一行的数据(下图),如果要将这些数据批量提取的话,请问该怎么操作呢?请大家帮助一下:( 
0 commentaires
Réponse acceptée
wjautnj
le 22 Mai 2023
for i=1:n
['out',num2str(i),'=cent(',num2str(i),').type']
end
得到out 1 .。。。。。。。outn 多个数据
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!