如果我在 python 中有一个 pandas.DataFrame
,我可以使用 dtypes
检查 DataFrame 的数据类型 attribute .我怎样才能对 Matlab 表做同样的事情?我查看了 Properties
机制,但没有找到任何面向类型的内容。
最佳答案
看来您可以调用以下内容:
varfun(@class,t,'OutputFormat',table)
class_var1 class_var2 class_var3 class_var4
__________ __________ __________ __________
double double double double
t
是您的表格。我正在引用答案 here .
有关 varfun
的更多文档可用 here
关于python - Matlab 相当于 Python Panda 的数据类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52598014/