I wanna call a function which is defined before with inputs are entering outside but I want to use this function that inputs can be calculated and assigned by the equations in another .m file
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
% for example,
function[latitude, longtitude]= ecef_to_geodetic(X,Y,Z)
disp('XYZ to latitude and longtitude')
X =input('X');
Y =input('Y');
Z =input('Z');
ans=X*Y*Z
-------------------------------------------------------------------------------
%in other function I want to calculate these inputs and assign the [latitude, longtitude] without necessary to input X Y Z
a=100 %for example
b=50
X=a*b
Y=a+b
Z=a+b+c
[latitude, longtitude]= ecef_to_geodetic(X,Y,Z)
%in here programme wants me to input X Y Z again due to the function how can I assign calculated X Y Z which is above to this function without input these values.
Antworten (1)
Walter Roberson
am 3 Apr. 2013
0 Stimmen
Comment out the input() statements.
1 Kommentar
sermet
am 3 Apr. 2013
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!