Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Assigning values from an earlier function

3 visualizaciones (últimos 30 días)
C Meek
C Meek el 16 de Dic. de 2011
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi everyone,
Sorry if my title is a bit vague. I have a function which I created, and takes two inputs N & Q. Later on in my project I am working on a different script which implements the said function.
So, in my script I am typing function1(4,5) where N=4 and Q=5. What I would like to do is get Matlab to actually assign N to 4 and Q to so I can use these letters later on in the script.
Any ideas on how to proceed?
Thanks

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 16 de Dic. de 2011
Not sure if it is this:
N=4;
Q=5;
function1(N,Q)
  1 comentario
C Meek
C Meek el 16 de Dic. de 2011
Yea, that's what I've put in anyway. I guess I'm finding it hard to describe what I'm looking for - but it won't matter for now, as I'm just putting the finishing touches to a project which is due in! Thanks

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by