Can some one please help me in passing the particular parameter from one function to another.
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Gaurav Sharma
 el 24 de Nov. de 2018
  
    
    
    
    
    Respondida: Stephan
      
      
 el 24 de Nov. de 2018
            Hi There,
I want to pass that "codebk" of vector.m to the test.m as input over there..."code". Can someone pls help with this.
I have attached the codes with this query for your kind pursual.
0 comentarios
Respuesta aceptada
  Stephan
      
      
 el 24 de Nov. de 2018
        Hi,
write a third script and call it for example main.m containing the following code:
% Define needed inputs for the functions
d = ... 
K = ...
testdir = ...
n = ...
% Call vector.m to get codebk as output
code = vector(d, K);
% Use the codebk as input for the call of test.m
test(testdir, n, code);
This code calls vector.m with the given inputs and returns codebk as result which is named code here. Then it calls test.m with the result you got.
Best regards
Stephan
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

