Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Spire.PDF for Java 2.7.8
Database Workbench Pro 5.6.10.0
The C# PDF Library 2020.1.5
CAD-Viewer 3DVBVIEW V4
dotConnect for SQLite 5.15
LuaStudio 9.92
EntityDAC 2.3
Devart ODBC Driver for QuickBooks 2.0
phpEnter 5.1.
Udemy Clone script 2.01
VisualNEO Web 19.11.7
VisualNEO for Windows 19.4.29.0
SentiVeillance SDK Trial 7.3
Devart ODBC Driver for PostgreSQL 3.2
SecureBridge 9.2
Top Code
SecureBridge 8.0
dotConnect for SQLite 5.9
Database Workbench Pro 5.6.10.0
EntityDAC 1.6
ATN Site Builder 3.0
ATN Resume Finder 2.0
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
Invoice Manager by PHPJabbers 3.0
The C# PDF Library 1.0
Devart ODBC Driver for PostgreSQL 3.2
Aglowsoft SQL Query Tools 8.2
Classified Ad Lister 1.0
Solid File System OS edition 5.1
ADO.NET Provider for ExactTarget 1.0
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
DIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION 1.0
File ID: 80256






DIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION 1.0
Download DIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 6
Submit Rating:
DIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION 1.0 Description
Description: Basic example for beginners, that shows how to solve the differential equation through S-Function
****************DIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION******************

***************"Instructions for Simulink"*************************

1.Goto simulink library browser and expand "Simulink"

2.Goto "user defined function" and expand it

3.Drag "S-Function" in the simulink enviorment

4.Double click and name the "S-Function name" as your save S-Function file, like "example" in this case

(**Make sure your both files are saved in same directory and their name dont overlap with any other file name)

*************Instruction for Matlab*******************

1.Type "open sfunctmpl" in command to open new S-Function

2.Save it as your own file,like "example" in this case;

3.Change the function name as your file name

4.In "function sys=mdlDerivatives(t,x,u)" you will define the differential eq

5.In "function [sys,x0,str,ts]=mdlInitializeSizes" you will define the continous states, inputs from simulink block and output.

6.In "function [sys,x0,str,ts]=mdlInitializeSizes" you will define Initial conditions of differential eq

7.In "function sys=mdlOutputs(t,x,u)", you will declare the outputs

License: Freeware

Related: sfunction save, Command, filelike, case change, name4in, Function, sfunctmplquot, quotopen, Directory, overlap, matlab type, nameinstruction, quotfunction, sys dmdlderivativestxuquot, conditions, initial, eq7in, sys dmdloutputstxuquot

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 6



More Similar Code

A simple example for beginners in MATLAB to solve the differential eq using built in functions of differential equation solvers.

Copy the files in the workspace
run "dxdt_solve"
dxdt.m contains differential equation



Arccircuit with s function and simpower



Detects the end and triple points of a skeleton image after the binary image has been passed through the function "bwmorph" 'thin' option.



To have access to JSBSim aircraft models, you must download JSBSim seperately!! Instructions in README file!!! Contains S-Function and source code.

Based on JSBSim MEX-Function project by Agostino De Marco.

Any JSBSim...



This s-function solves Riccati equations in Simulink without calling the Matlab interpreter, it is FAST and usable with Real Time Workshop.

Specifically, the s-function is a level-2 gateway that calls several FORTRAN routines written by...



The template includes an s-function (sfun_cstr_apm.m), SIMULINK model (cstr_simulink.mdl), cellwrite.m (also available on Matlab Central), and several APMonitor files for a CSTR example.

The operating instructions for this interface is...



The Code Coverage Tool (CCT) measures C statement coverage in code built as a Real-Time Workshop S-Function. It operates in conjunction with lcc (the C-Compiler that ships with the standard MATLAB installation). CCT inserts instrumentation code...



This submission is an example showing how a Level 2 M-file S-function can be used to help debugging models and vizualize the values computed by the SimulinkdlT« solver at minor time steps.

This submission contains a Level-2 M-file...



This s-function outputs 6-axes from the Windows Joystick-driver along with 16 joystick-buttons and can slow down the simulation speed to "real-world-speed", so you can test behavior of models.
Slow-down is accopmlished by...



This submission demonstrates how to write a level-2 M-file S-function with a variable sample time.

The block samples and holds an input signal were the inter-sample period is specified by another input signal (and may vary from time...

User Review for DIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION
- required fields
     

Please enter text on the image