How to store value of each iteration in table and call that in another function
    1 visualización (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Mukund
 el 3 de Nov. de 2017
  
    
    
    
    
    Comentada: Mukund
 el 5 de Nov. de 2017
            I am searching for above help, but could not found. Can you please put it through a Example code.
1 comentario
  KL
      
 el 3 de Nov. de 2017
				Be more specific, show what you're trying to do and what problem are you facing.
Respuesta aceptada
  Birdman
      
      
 el 3 de Nov. de 2017
        As an example:
n=10;
  for i=1:n
      Array=rand(1,2)
      table_array(i,:)=table(Array)
      %see every step which randomly generated values are stored in a table
  end
  DISPLAY(table_array)
  %DISPLAY is the function which displays the table
function y=DISPLAY(x)
y=x;
end
5 comentarios
  Birdman
      
      
 el 4 de Nov. de 2017
				n=10;
  for i=1:n
      Array=rand(1,2);
      B_Array=sqrt(Array);
      table_array(i,:)=table(Array,B_Array)
      %see every step which randomly generated values are stored in a table
  end
  DISPLAY(table_array)
  %DISPLAY is the function which displays the table
You will add it like this.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Tables en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


