Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 MATLAB 中有一组结构,我想绘制一个键的所有值。我知道你可以通过做打印它,array.key但由于某种原因hist(array.key)不起作用。
array.key
hist(array.key)
看起来很简单,但我找不到如何做到这一点。
clear all array(10).key = 1:10; mat = [array.key] hist(mat)
尝试类似上面的方法。