DSPRelated.com

generating M-file S-function

Started by Ayman Rabee in Matlab DSP20 years ago

Hi everybody I have an m-file that implements daydic wavelet transform. How can I write an S-function for this file to be...

Hi everybody I have an m-file that implements daydic wavelet transform. How can I write an S-function for this file to be used in simulink. I appreciate a deep explain. Thanks in advance __________________________________


Drivate of noisy signal

Started by raffaelemalutta in Matlab DSP22 years ago

Hallo evedybody. I'm working with Simulink (discrete time) and I've to derivate a noisy signal. What is the best way to do...

Hallo evedybody. I'm working with Simulink (discrete time) and I've to derivate a noisy signal. What is the best way to do this? Anyone could suggest me a proper choise for cefficients of a derivative filter? (for example: [z(n) + 3z(n-1) -3z(n-2) -z(


Automatically inserting submodels

Started by Tamas Szakacs in Matlab DSP21 years ago 2 replies

Hallo, Is there any way to insert, and connect a submodel automatically to an existing model? I would like to have a...

Hallo, Is there any way to insert, and connect a submodel automatically to an existing model? I would like to have a gui, or a scrip, which can load different simulink models, and connect them to each others. Let say I have different trucks, and diff


reagrding C166 microcontroler

Started by jyothsnagandham in Matlab DSP20 years ago

Hello everybody, I have a problem with setting the target preferences in simulink for the C166 Infineon toolbox.can anyone help me...

Hello everybody, I have a problem with setting the target preferences in simulink for the C166 Infineon toolbox.can anyone help me with this problem. Jyothsna


MATLAB S FUNCTION

Started by Anonymous in Matlab DSP23 years ago

Hello All, I have a number of C code S functions that were created in a different version of Matlab. It does compile in MATLAB...

Hello All, I have a number of C code S functions that were created in a different version of Matlab. It does compile in MATLAB 5 and 6 . But the simulink block does not run . It gives: invalid mex file. Can anyone help me with this ..how to make it work. I guess the files


Simulation Time

Started by racf in Matlab DSP21 years ago

I?ve realised I wasn?t very correct in the description of my problem. In fact, I am working with Simulink, not MatLab code. I am...

I?ve realised I wasn?t very correct in the description of my problem. In fact, I am working with Simulink, not MatLab code. I am doing a wind park modelation and its integration in the electrical grid. When I was testing the park with only one turbine, everything went ok.


Re: Re:[Matlab] Re: Help in Simulink

Started by Vipperla Ravi Chander N Rao in Matlab DSP20 years ago

Hi, What I forgot to mention was that before taking the signals into the workspace for performing cross correlation, you need make...

Hi, What I forgot to mention was that before taking the signals into the workspace for performing cross correlation, you need make the SNR of the channel very high. Then the received signal would be same as the transmitted one with some delay added. This delay can be found by c


Simulink and S-functions

Started by Sergio Dominguez in Matlab DSP21 years ago 1 reply

hi all! There is something that I really do not understand!! I have run a simulation in which I compare outputs of an...

hi all! There is something that I really do not understand!! I have run a simulation in which I compare outputs of an s-function and the implementation of the s-function as simuling blocks (no derivatives involved in the s-function, only algebra) and the outputs are different


Dynamic changes in matlab 6

Started by Vinod in Matlab DSP23 years ago

Hi, I am working on MATLAB6 and simulink 4.In one of my requirements for the simulation of a particular model i need to change...

Hi, I am working on MATLAB6 and simulink 4.In one of my requirements for the simulation of a particular model i need to change the control variables during runtime and their effect be visible during the runtime in other blocks of the model. Please help me solve this prob


M file to C?

Started by morganyang1982 in Matlab DSP20 years ago

Is it possible to translate a M file into C code? I have played around with real time work shop but that only seems to work from...

Is it possible to translate a M file into C code? I have played around with real time work shop but that only seems to work from simulink. I have a m script that performs discrete wavelet transformation and my c knowledge is not strong enough. Is it possible to convert it to C?


Gaussian white noise: variance-power relation

Started by narv...@datamars.com in Matlab DSP19 years ago

Hello: I am simulating a transmission channel with simulink. I want to add gaussin noise. I need to know which is te realtion between the...

Hello: I am simulating a transmission channel with simulink. I want to add gaussin noise. I need to know which is te realtion between the variance of the noise signal and its power. Thank you. nac


Measure intensity of grayscale image

Started by Syed Nabi Hossain in Matlab DSP15 years ago

Hi, I am using MATLAB R2007a. I am trying to find the number of pixels and each pixel intensity in a given image in simulink. I want to...

Hi, I am using MATLAB R2007a. I am trying to find the number of pixels and each pixel intensity in a given image in simulink. I want to find this for the entire Image. Waiting for the reply as soon as Possible. Thanks in Advance, Syed


Manipulating filenames using functions

Started by malcolm_graham2002 in Matlab DSP22 years ago 2 replies

Does anyone know of an easy way (or any way) of manipulating m-file names using a matlab function. As a simple example: say I...

Does anyone know of an easy way (or any way) of manipulating m-file names using a matlab function. As a simple example: say I have a Simulink model which runs the m- file 'file1.m'. Now I also have three other files called 'file2.m', 'file3.m' and 'file4.m'. What I want to do


OFDM frequency spectrum

Started by Hussain in Matlab DSP15 years ago 1 reply

Hello guys, I don't know a lot about matlab simulink, so I was wondering if someone can help me so I can figure out the spectrum of an ofdm. I...

Hello guys, I don't know a lot about matlab simulink, so I was wondering if someone can help me so I can figure out the spectrum of an ofdm. I want the complex data out from the transmitter to be analogized separately- I mean the real and imaginary signals each one alone- then digitized by a sampling rate that is twice the value of the digital transmitted signal. Thanks in advance, Huss...


phase shift

Started by jzzhu4 in Matlab DSP22 years ago 1 reply

Hi, all, Does anybody know how to do phase shift in Simulink, e.g shift a single with 90o ? Thanks, ...

Hi, all, Does anybody know how to do phase shift in Simulink, e.g shift a single with 90o ? Thanks,


Source Code Needed!!

Started by phillnicholls in Matlab DSP21 years ago

Hi guys, Can someone please help me out - I need to develop a demonstration of oversampling, delta-sigma conversion and noise...

Hi guys, Can someone please help me out - I need to develop a demonstration of oversampling, delta-sigma conversion and noise shaping using audio files in Matlab and/or Simulink. I need code that isn't too complex - an average engineering student should be able to understand it


Debugging S-function in Visual C++

Started by mary guo in Matlab DSP21 years ago 3 replies

Hello, I have been using Visual C++ for building s-functions. And I was able to debug the C program under Visual C++ by...

Hello, I have been using Visual C++ for building s-functions. And I was able to debug the C program under Visual C++ by involing matlab/simulink under VC++ debug mode. But just recently, after I set the break point(s) in C file at VC++, and then tried to run, a wi


functionality of the capacitor

Started by jyothsna gandham in Matlab DSP20 years ago 4 replies

Hello all, I am trying to learn simulink  and currently trying to find out the functionality of the capacitor by taking a sine...

Hello all, I am trying to learn simulink  and currently trying to find out the functionality of the capacitor by taking a sine wave as the input for a continous signal. Can anyone suggest me how to proceed with this. Thanking you Jyothsna


S Functions

Started by snehamoy_banerjee in Matlab DSP20 years ago 1 reply

Hello Everybody, I am trying to implement a Sequence Generator as a Communication Source using S Functions for Simulink. Since...

Hello Everybody, I am trying to implement a Sequence Generator as a Communication Source using S Functions for Simulink. Since I am new to S Functions, I am using the S Function builder to implement it. The problem is that the builder is not allowing me to have no input ports


problem with scomberlekamp ???

Started by chaupln in Matlab DSP17 years ago

when I run a simulink simulation, I've catch this error : "Error reported by S-function 'scomberlekamp' in 'wimax/Block...

when I run a simulink simulation, I've catch this error : "Error reported by S-function 'scomberlekamp' in 'wimax/Block Decoder/Integer- Output RS Decoder'...: The parameter 'Power of alpha' must be greater than 0." Does any body know about this error and please show me how to solve it ? Thank you very much !