About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 6 years ago
  • Total downloads: 124
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Qadeer Ahmed (4 other programs)
See full specifications

scripts default iconDIFFERENTIAL EQ. SOLUTION THROUGH S-FUNCTION (Scripts) Publisher's description

Basic example for beginners

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

System Requirements:

MATLAB 7.3 (R2006b)
Program Release Status: New Release
Program Install Support: Install and Uninstall


Click on a tag to find related softwares


Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.