在matlab中运行为什么是这样的:未定义函数或变量 'GetRgbHist'

img

 clc:clearcloseall:
 %set(gcfouterpositionget(0,screensize));
 imaq1=·2.jpg'
 imag2=·23.jpg'
 [count1,l1]=·GetRgbHist(imag 1);
 [count2,12]=·GetRgbHist(imag2);
 Value=·imsimilar(count1,count2,2);
 subplot(2,2,1);imshow(l1)title('Original-lmage
 subplot(2,2,2)hold-onimshow(l2);title(lmagescaleof-80%)
 subplot(2,1,2);
 plot(count1);.
 holdon
 plot(count2,r');
 legendCOriginal-lmage',lmagescaleof80%2);
 str=sprintf(Similarity:9s%%,num2str(value))
 title(str);.

在matlab中运行为什么是这样的:
未定义函数或变量 'GetRgbHist'。

出错 Untitled12 (line 5)
[count1,I1] = GetRgbHist(imag1);

中文、英文括号。你贴出的代码左右括号不一样。
然后函数前有个点,去看看和定义的函数是否完全一样吧。

代码语法不太准确