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!