Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: An array problem

$
0
0
"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

Viewing all articles
Browse latest Browse all 19628

Trending Articles