0
, a(2)=3
등과 같이 크기가 a=<100x1 int32>
인 배열이 있습니다. 이 데이터에서 어떻게 히스토그램을 그릴 수 있습니까? 내가 직접 hist(a)
을 사용하여 플롯하려고 , 그것은 다음과 같은 오류를 보여줍니다배열에서 히스토그램을 그리는 방법
Error using .*
Integers can only be combined with integers of the same class, or scalar doubles.
또한 경우에 데이터는 정수 a=<100x1 string>
등이 a(1)='Saturday'
, a(2)='Monday'
등이 다음 어떻게이 데이터에 대한 히스토그램을 그릴 수 있다고 생각하지 않습니다 .
hist(double(a));
당신은 예를 들어, 히스토그램을 생성하려면 : hist
를 호출하기 전에 (당신이 메모리에 대한 우려 경우, 또는 단일)
여기에 질문하지 않았습니까? http://stackoverflow.com/questions/9055541/plotting-a-histogram-from-cellvalues? –