MATLAB: How i change the data from column to rows. it try on transpose but give wrong result.

bioinformatictripeptide

clear all;
close all;
clc;
V = 'ARNDCEQGHILKMFPSTWYV';
[X,Y,Z] = ndgrid(1:numel(V));
P = V([X(:),Y(:),Z(:)]);
C = cellstr(P);
q =P(1:400,:)
result is
'STV'
'TTV'
'WTV'
'YTV'
'VTV'
'AWV'
'RWV'
'NWV'
'DWV'
'CWV'
'EWV'
'QWV'
'GWV'
'HWV'
'IWV'
'LWV'
'KWV'
'MWV'
but i want it in row form
'AAA','RAA','NAA'…

Best Answer

C = cellstr(P).'
^^ you need to transpose if you want a row cell vector.