Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
Embedded fucntions

Subject: Embedded fucntions

From: Faraz Afzal

Date: 8 Mar, 2009 17:29:02

Message: 1 of 1

Hello all,

Is there anyway to setup two functions within same *.m file..
Now is that possible that i should call both of them using one ode45 solver in command line such that both evaluated at the same time....

well I have two Differential equations (made up of All matrices, eq. one riccati and eq. second a special case of riccati)...

can i make use of for loop that goes back and forth within function and calculates variable at every instant and use it to calculate the special case embedded riccati and so on..

Any suggestion or guideline will be greatly appreciated.!!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us