Finding transpose of values.
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Silpa K
 el 6 de Nov. de 2019
  
    
    
    
    
    Comentada: Walter Roberson
      
      
 el 6 de Nov. de 2019
            ts = xlsread('ArrowHead_TRAIN.xlsx');
for i = 1:100
    b=20
     p=ts(i,:);
    n= numel(p);
     Z=mat2cell(p,diff([0:b:n-1,n]));
    A=transpose(Z);
celldisp(A)
end
I want to find the transpose of Z values.I need the elements of Z  in an array order.I used transpose,but not working.How can I get the elements of Z in an array form.Please help me.
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 6 de Nov. de 2019
        ts = xlsread('ArrowHead_TRAIN.xlsx');
for i = 1 : size(ts,1)
    b = 20;
    p = ts(i,:);
    n = numel(p);
    Z = mat2cell(p, 1, diff([0:b:n-1,n]));
    A = cellfun(@transpose, Z, 'uniform', 0);
    celldisp(A)
end
2 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Logical en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!