MATLAB Answers

how can i combine 2 or more programm ?

1 view (last 30 days)
i have make a programm that filter my data input from excel. As output i have a timetable.
Date Site Temperature
___________ ____ ___________
01-Mar-2017 1 5.9
01-Mar-2017 1 5.9
01-Mar-2017 1 5.7
01-Mar-2017 1 5.4
08-Mar-2017 1 6.3
08-Mar-2017 1 5.8
now i want to input this data on another model which i have created on another Programm. I want to input the variable and the Data set. so that, later i can do plot comparison between the simulation and the real data.
this is the model
r0=r0*exp(-(0.17*(watertemp-27))^2);
thirdly, i will visualize the data on another Program that i created nad make an Animation from it. using bubble
lat1 = [52.16069444 52.16005556 52.15916667 52.15816667 ];
lon1 = [10.54361111 10.54194444 10.54194444 10.54138889 ];
r0= [0.05 0.03 0.05 0.02];
gb = geobubble(lat1,lon1,r0);
gb.Basemap = 'streets';
the r0 should come from the Simulation.
geobubble

  0 Comments

Sign in to comment.

Accepted Answer

Swetha Polemoni
Swetha Polemoni on 5 Nov 2020
Hi,
It is my understanding that you want to use data in one program which is generated in another progarm . You could use "function" in Matlab for this scenerio. You can write two functions each for your two different programs. You can use the output of one function in another function by making a function call. Consider the following code snippet for better understanding.
function out=myfunction
out=my_eqn(1,2); %% function call to my_eqn function to get a value
disp(out);
end
function a= my_eqn(x,y)
a=2*x^2+y+5;
end
Make sure that the Mfile name is same as your first function name.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!