Error undefined variable or method
1 次查看(过去 30 天)
显示 更早的评论
I am working on LDA-Latent Dirichlet Allocation for Images,in that the first step is to find
K-dimensional topic weight vector m from the distribution p(|) = Dirichlet().
i tried Dirichlet(I),where I is the Image
but i get error
Undefined function or method 'Dirichlet' for input arguments of type 'char'.
please help
0 个评论
回答(2 个)
Wayne King
2012-10-5
It is not a MathWorks' function. The extract that you supplied seems to suggest that you are sampling from a Dirichlet distribution. If you search the web, there are MATLAB routines available for sampling from a Dirichlet distribution.
0 个评论
Walter Roberson
2012-10-5
You are misreading the document as if it is telling you a MATLAB function name, when instead it is naming a particular mathematical distribution without regards to how that is implemented.
MATLAB does not provide a Dirichelet random distribution function, but see http://www.mathworks.com/matlabcentral/newsreader/view_thread/65818
7 个评论
Image Analyst
2012-10-5
This is an algorithm question more than a MATLAB programming question. I suggest you find remote sensing forums where people do this kind of image analysis. Or search the VisionBib for papers related to your scene. Neither Walter nor I do remote sensing.
Walter Roberson
2012-10-5
Q: In the movie Star Wars, how large is the Imperial Battle Cruiser?
A: About 3 feet long. It just looks huge because of the camera angles and very very careful use of perspective.
You need to distinguish between what an image looks like and what the image is. An image might perfectly match the remote sensing characteristics for water and land, but the image might be something else completely, such as CGI.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!