"Too Many Input/Output Arguments" error for nrlmsise00 function
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
I am trying too run a script that involves this function: 
rho = nrlmsise00(altitude, year, month, day, hour, minute, second);
Every time I try to fix it, I get the same errors.  If I reduce the input arguments, I get the too many input arguments error until I reduce it to nothing (then I get the too many output arguments error).  I don't have the Aerospace toolbox, so I downloaded the nrlmsise00 function off of this site, and I don't know if it has been added to the path, but I tried every way to add it.  What are your thoughts?  Please help, thank you.
2 Commenti
  Torsten
      
      
 il 19 Dic 2024
				If you downloaded it here
you will see that the function has neither inputs nor outputs.
Risposta accettata
  Torsten
      
      
 il 19 Dic 2024
        
      Spostato: Torsten
      
      
 il 19 Dic 2024
  
      The results for the defined testcase seem to coincide with what is stated in the Documentation (see below).
You will have to adapt the function nrlmsise00 according to your needs (which means you have to understand which data you have to supply (input structure) and which data you can get out of the function (output structure)) .
nrlmsise00()
0 Commenti
Più risposte (1)
  Walter Roberson
      
      
 il 19 Dic 2024
        The nrlmsiese00 function at https://www.mathworks.com/matlabcentral/fileexchange/56253-nrlmsise-00-atmosphere-model does not accept any inputs and does not produce any outputs. 
Instead of inputs, you need to adjust the values in the lines
flags = struct('switches',zeros(24,1),'sw',zeros(24,1),'swc',zeros(24,1));
ap_a = struct('a',zeros(7,1));
input = struct('year',0,'doy',0,'sec',0,'alt',0,'g_lat',0,'g_long',0,'lst',0,'f107A',0,'f107',0,'ap',0,'ap_a',ap_a);
0 Commenti
Vedere anche
Categorie
				Scopri di più su Get Started with Aerospace Blockset in Help Center e File Exchange
			
	Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


