Can anyone tell me how to change the display and storing of the values returned in given form to the form displayed and stored by imhist. Format is given below.
1 次查看(过去 30 天)
显示 更早的评论
In case of imhist program working fine because the pixelCounts(Variable) for them are displayed in this form. Given below....
1
2
3
4
5
like this.And in case of LRBP(My code) pixelCounts(Variable) are displayed like this:
columns 1 to 7
1 2 3 4 5
In this form.
Now I want LRBP form to be displayed in imhist form.
That's Why I am getting subscripted dimension mismatch as error. This what I tried to find out cause of the error.
Now can you please help me to guide what should I change??
So that This error will be resolved.
0 个评论
采纳的回答
Jan
2014-3-9
Which code causes the error? Without seeing the code, we cannot guess what you should change. But it looks easy, because all you need to do is to transpose the output:
a = [1,2,3,4,5,6,7];
disp(a)
disp(a.')
% or equivalently: disp(transpose(a))
% or:
b = [1;2;3;4;5;6;7]
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!