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
C# QR Code Generator 4.0.2.2
Salesforce WordPress Customer Portal 3.2.0
Single Leg MLM 1.2.1
OzGIS 14.6
Quick Maps For Dynamics CRM 3.1
Job Board Software 4.2
PHP Real Estate Script 1.3.2
IP2Location Geolocation Database April.2019
dbForge Data Generator for Oracle 2.1
VisualNEO Web 2018.12.15
SentiMask SDK Trial 1.0.0
OrgChart JS 4.6.4
dotConnect for BigCommerce 1.8
FedEx Smart Shipping For Magento 1.0.0
Database Workbench Pro 5.6.2.311
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Modbus RS232 ASCII Communication Functions 1.0
CardCheck COM DLL for Credit Card Processing 1.1
Efficient K-Means Clustering using JIT 1.0
webmoney - Webmoney payment gateway 5.x-1.2
Azizi search engine script PHP 4.1.10
Cuckoo Search (CS) Algorithm 1.0
Hyperion Tools 1.0
bit plane slicing 1.0
PasDos 1.0
Another PHP Counter 1.0
JavaScript Webix DataView 1.7
mCore Pro - SMS & WAP Push Component 1.VI
vNews 1.II
Strx Simple Sharing Sidebar Widget 2.0.2
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
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
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.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