"ali kucur" <kobay000@gmail.com> wrote in message <kalho4$nug$1@newscl01ah.mathworks.com>...
> 'd' array's size equal to "sutun". for example if sutun=4 then the process must be:
>
> d1=B(1,:);
> d2=B(2,:);
> d3=B(3,:);
> d4=B(4,:);
> ans=[d1 d2 d3 d4]
>
> but "sutun" has variable value so i want to make it universal for each "sutun" value. hope i could explain what is the goal, thanks in advance.
- - - - - - - -
The code you tried is invalid in matlab. To get to the result you show, do it this way:
D = reshape(reshape(A,p,q).',1,[]);
Roger Stafford
> 'd' array's size equal to "sutun". for example if sutun=4 then the process must be:
>
> d1=B(1,:);
> d2=B(2,:);
> d3=B(3,:);
> d4=B(4,:);
> ans=[d1 d2 d3 d4]
>
> but "sutun" has variable value so i want to make it universal for each "sutun" value. hope i could explain what is the goal, thanks in advance.
- - - - - - - -
The code you tried is invalid in matlab. To get to the result you show, do it this way:
D = reshape(reshape(A,p,q).',1,[]);
Roger Stafford