Error in blastscript2_halland (line 60)

조회 수: 1 (최근 30일)
dave Johanson
dave Johanson 2015년 3월 5일
답변: dave Johanson 2015년 3월 6일
Running into a problem running this script in MATLab 2014a. I didn't write the script but have been told to apply. Purpose is to compare peak values pre-, 1d and 7d post-event between two subjects. The correlation coefficients are plotted, then the cross-correlation coefficients are plotted in a probability vs CxC histogram.
I placed the data into the workspace--changed the directory--ran the script but the output and get this output:
Undefined function 'histogram' for input arguments of type 'double'.
Error in blastscript2_halland (line 60) histogram(cxc{j},hbin,'Normalization','probability');
Any help appreciated, picture of script attached

채택된 답변

dave Johanson
dave Johanson 2015년 3월 6일
you are correct sir, I have windows matlab version 2014a and the script was generated on a mac matlab version 2015.

추가 답변 (1개)

Geoff Hayes
Geoff Hayes 2015년 3월 6일
편집: Geoff Hayes 2015년 3월 6일
Dave - which version of MATLAB are you using? In the Command Window type
ver
and observe the result. The function histogram appears to have been introduced in R2014b. If you have an earlier release, you will have to modify the above code to make use of the hist function.
If you have (at least) R2014b, then type the following in the Command Window to find where in the MATLAB search path this function resides
which histogram -all
though I suspect that you won't find this file.

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by