how to merge the data in a table into one column

I have a 4*3 table . Now i want to delete last row of the table and combine to a single column of a table .After deleting the last row of a table, the second column should come to the 4th position of a first column in a table. simiarly third column.

Answers (1)

A = rand(4,3) ;
A(end,:) = [] ; % delete last row
A = A(:)

2 Comments

If an answer solves your issue, please consider marking it as accepted answer. That is true for all your questions.

Sign in to comment.

Categories

Asked:

on 19 Feb 2021

Commented:

Rik
on 19 Feb 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!