MATLAB is a commercial numerical computer algebra system

learn more… | top users | synonyms

-1
votes
1answer
33 views

Drawing Smith Chart from Network Analyzer file

I have a file as a .dat format taking from network analyzer. I want to plot Smith chart graph. The file has 3 columns which are frequency, S11(linear value), S11 (ang value) respectively. How can draw ...
0
votes
0answers
11 views

How do I go about identifying a thermal system with multiple inputs and outputs? MIMO system

I have a lot of measurements of a thermal system that I would like to model using a state space model. How do I go about identifying and modeling the system? The system has 2 inputs and 5 outputs. ...
0
votes
2answers
26 views

Simulation of OCC, for a 3 phase Alternator using MATLAB/Simulink

I was wondering if there was a way simulate a 3 phase alternator on MATLAB/Simulink and obtain its Open Circuit Characteristics by conducting an Open Circuit test. Also is there any other possible ...
0
votes
0answers
21 views

MATLAB using rand to test for time invariance

So I am given a certain system: y(n) = 10x(n)cos(0.25pi*n + 0.1pi) And I am to test if the system is time invariant by plotting two input signals x(n) and x(n-2), and their corresponding output ...
-1
votes
0answers
26 views

Inital condition for 1st order derivative

I have a PT2 system filter, $$Y'' = a_0*Y'+a_1*Y+b*u$$ I want to apply this filter to my signal, i have a problem in deriving initial condition for 1st order ...
0
votes
0answers
59 views

Path Following for a Differential Drive Robot - MATLAB & Simulink

I have the Kinematical model of Skid-Steering Robot with Differential Drive is illustrated in the below figure. Lambda_L is the Left wheel slipping so Lambda_R the are assumed constants 0.01, c is ...
0
votes
0answers
19 views

Why MATLAB do not always read from serial port? [migrated]

I'm doing a project where I need to read and write serial data between MATLAB and Arduino. But MATLAB do not always successfully read data. I set baudrate 9600 and my serial setup is like this: ...
1
vote
0answers
18 views

SiC Schottky power diode MATLAB simulation issue

Hi Everyone (first time poster), I am modelling a 4H-SiC Schottky power diode in MATLAB and I have come into some issues with MATLAB when trying to make an I-V curve. I was reading this paper and I ...
3
votes
1answer
47 views

In a Delta-Sigma ADC, does noise shaping bring the noise to the signal's frequency?

I'm trying to understand the Delta-Sigma ADC. It is known that it pushes the quantization noise to be in the higher frequencies (noise shaping). Since I don't quite understand how this works, I ...
0
votes
1answer
16 views

Error in powergui block in Simulink involving vector dimensions.

I am designing a DC machine in Simscape, but when I try to run the simulation there is this weird error: "Error in port widths or dimensions. Input port 2 of 'simulacaodcmono/powergui/...
-2
votes
1answer
36 views

Direct Torque Control of Induction Motor (DTC)

I was working on a project on how to design a classical Direct Torque Control drive DTC but there is a ceratin point that i can't understand. How can we calculate the Reference values of the torque ...
0
votes
0answers
39 views

Hysteresis controller in Simulink

With reference to THIS document's 7th figure, I'm trying to simulate a hysteresis controller with a specified dead band. I have all the components necessary but the comparator block seems to be a ...
3
votes
4answers
94 views

How can a transfer function with only real poles show an overshoot in the step response?

I am trying to simulate the circuit below on SIMSCAPE, and its behavior is different in the simulation and in the real world. The simulation shows an overshoot, while the measurements I made do not - ...
0
votes
1answer
34 views

Independently toggling two series switches to multiply two pwm signals

Preface It is known that one can synthesize a signal into a train of boxcar pulses (pwm modulation), each with the same amplitude, if proper low pass filtration is applied to this pulse train before ...
-1
votes
1answer
102 views

Filtering a frequency and its harmonics (Matlab)

I want to remove all the frequency components from a .wav file except those within \$\pm 25\$ of \$523 \ Hz\$ as well as its harmonics. Attempt: I used a high pass filter first to suppress ...
0
votes
1answer
28 views

Gaussian function power spectrum (Matlab)

I am trying to plot the power spectrum (\$|FT(f)|^2\$) of a Gaussian function, and overlap it with the theoretically expected spectrum calculated from the Fourier transform pair: \$e^{-\alpha t^2} \...
0
votes
1answer
46 views

Generating FFT on data recived from 20Amp(ACS712) current sensor using arduino & processing IDE

Currently, for generating FFT on the data received from ACS712,i used the following method: first the data is sent to the Processing IDE from the sensor via arduino. the processing code converts the ...
0
votes
1answer
49 views

Gaussian Function Fourier Transform (Matlab)

I am trying to write my own Matlab code to sample a Gaussian function and calculate its DFT, and make a plot of the temporal Gaussian waveform and its Fourier transform. According to the FT pair: \$ ...
3
votes
2answers
64 views

Band-pass filter with a given impulse response (Matlab)

I am trying to pass a .wav sound waveform through a band pass filter whose impulse response is given by \$ h(t)=50u(t) \exp(-10t) \sin(2 \pi 440t), \$ I have imported the file into Matlab as follows:...
0
votes
0answers
33 views

Builing a Shunt active power filter in the synchronous reference frame

This schema representing a shunt active power filter in the synchronous reference frame, I'm focusing on the Area in the red box ! Schema I want to learn how to build my own shunt active power ...
1
vote
0answers
35 views

how to sample and modulate a gps gold code

I am trying to simulate the data transmission of a GPS satellite. Telecommunications is not my field so I am struggling a bit with some concepts. I managed to generate the Gold code of the GPS ...
-3
votes
1answer
38 views

Simple Matlab Problem [closed]

I just started working with Matlab last week, so I'm very new. After searching for a while, I realized that I don't know how to fix a Matlab script that I'm working with. The problem is given below. <...
-2
votes
2answers
39 views

How to do level shifting signal in simulink matlab?

i want to do level shifting signal from -5..5v to 0..10v in simulink.. anyone know how to do that in simulink? thanks
0
votes
1answer
40 views

How to implement a MIMO model with state space block in sumulink?

I want to implement an state space model with 4 inputs and 4 outputs at simulink. But the state space block has only one input and only one output. So what can I do here?
0
votes
1answer
23 views

What is the difference in the input from inbuilt microphone and an external microphone amplifier?

I wrote a MATLAB script interfacing my laptop's inbuilt microphone to calculate the dbA levels of noise in my classroom. (un-calibrated, as of now) I want to now use this dbA calculation script on ...
0
votes
1answer
26 views

Transfer function just from data?

Is Matlab able to formulate a second order transfer function from just a dataset of 2 inputs and their 2 outputs or I still need to conduct a step response on my MIMO model to calculate the TF ...
0
votes
1answer
83 views

Interfacing Microphone amplifier with MATLAB A-weighting filter

I am working on a project that essentially would be used to measure the Noise produced by ceiling fans and regulate the speed if the noise interferes with speech levels. For the first phase of this ...
0
votes
1answer
82 views

MATLAB analog filter impulse response

MATLAB's impz is used to get the impulse response of a discrete time filter. freqz is used for the frequency response of a ...
0
votes
0answers
63 views

Unstable bode plot with positive gain margin and positive phase margin

I'm trying to design a compensator for a buck-boost converter (whose specifications I control). The model I used is: The transfer function of the buck-boost converter which I use is : (LIs - 1) / (...
0
votes
1answer
281 views

2nd order Sallen-Key Bandpass filter design in Matlab

I'm trying to design a Sallen-Key BPF within Matlab. With the documentation found on ti: http://www.ti.com/lit/ml/sloa088/sloa088.pdf, I studied and understood the basic. As for the design: The ...
0
votes
1answer
34 views

Feedback Control: Unexpected result for block diagram simplifications using matlab

I made some simple calculations regarding block diagram algebra. The problem is that I don't get the same result using matlab. Here is the system with it's corresponding blocks: $$H_1 = z+2$$ $$H_2 =...
0
votes
1answer
86 views

designing PID controller using Ziegler Nichols algorithm

I'm trying to use Ziegler Nichols algorithm to design PID controller for the following transfer function: G=w^2/(2*xws+w^2), w=1 , x=0.2. so since the step response for this function is a second ...
0
votes
1answer
381 views

Setting up a PID controller in Simulink for an Arduino example project

On the internet I found this "Arduino PID Example Lab" as an introduction to PID-contole. I set up the hardware and it is working like it is diskribed in the document. Since it is possible to connect ...
0
votes
2answers
59 views

How to perform a \$\dfrac{1}{s+a}\$ type integration in MATLAB?

Currently, I am integrating an ODE of the form \$\dot x = f(x,t)\$ in MATLAB using the function ode45 This is equivalent (in block diagram form) as passing \$\dot x\$ through an integrator \$\dfrac{1}...
0
votes
1answer
67 views

Sampling frequency and FFT

I have tried this example code for sampling and FFT in MATLAB, but I have noticed that when the signal frequency becomes closer to nyquist frequency , some errors ( small frequency components near the ...
1
vote
1answer
54 views

Controls: Getting the feedback transfer function of a Plant and Controller

I'm designing a function in Python similar to MATLAB's 'feedback(T)' command. I know modules already exist, but it's something I want to do for myself for fun. However, I am running into issues. Let's ...
1
vote
0answers
40 views

Why does Simulink only allow you to linearize parts of your model that contain arrows?

I created a Boost converter but can't get its open loop transfer function because Simulink won't let me linearize. Here it allows me to linearize the input to the scope (I don't know what purpose ...
0
votes
0answers
95 views

How to study temperature influence on Li-Ion Batteries?

I would like to study and simulate the influence of the ambient temperature on a given Lithium Ion Cell. Behavior while charging or discharging for both internal Resistance and capacity. My Battery-...
2
votes
1answer
287 views

How to calculate poles of overdamped, 2nd order system if only given experimental data?

I have been looking about how to calculate poles if I have experimental result of a step response in Matlab that looks like an overdamped system. So far I only found information (through internet or ...
0
votes
1answer
98 views

Step response of feedback system

We have a feedback system F(s) as in this figure: and this is the step response of G(s): and H=10. F(s): We got the root locus of the system F(s) as this: then we determined the gain ...
1
vote
2answers
139 views

Application to solve for Fourier series coefficients?

Does anyone know a way to solve for Fourier series coefficients using Matlab, WolframAlpha, random web app, etc.? For example if I wanted to solve for and plot the Fourier series coefficients for the ...
-1
votes
1answer
102 views

solve a problem with simulink

I have this problem which i want to solve using simulation. How i think it shall work in Simulink( i am not sure this is the way to do it) : -measure power and then decrease the voltage and increase R ...
0
votes
1answer
84 views

Matlab: Channel coding and modulation [closed]

This is a beginner level question on understanding modulation and channel coding. The confusion arises when I am trying to implement the concepts. Let's say I have the information bits as ...
0
votes
1answer
175 views

Matlab simscape component modification.

I am new to Matlab. I wanted to use Simscape resistor element and want to make it Temperature dependent. However i open the code of the component by view source code. I modify the code but couldn't ...
1
vote
2answers
139 views

Reduce the impact of gaussian noise on DTMF decoder

I have a Matlab code to decode digits from a given DTMF audio file (wav format). Considering the input signal to be in the form of x(n)+αv(n) where x(n) is the noise-free signal (i.e. the given DTMF ...
-3
votes
2answers
116 views

Simulink Capacitor doesnt load in simulation

I have a capacitor connected to a Voltage source in Simulink and it doesn't load with Voltage ....The voltage remains constant...3V What did I do wrong ? The Simulation says the voltage across ...
1
vote
1answer
65 views

Function to Simulate Realistic Waveform

I need to simulate a realistic signal voltage triangle waveform in Mathematica. I know that a real waveform won't have sharp corners, but I don't remember exactly what a real triangle wave looks like....
0
votes
1answer
72 views

Get distance covered by a wheel using a gyroscope placed on it

I have to calculate the distance covered by a wheelchiar using data gathered from a gyroscope that was placed on one of the driving wheels. I know the total length of the corridor we used for the ...
1
vote
2answers
53 views

How to find the transfer function of a frequency counter?

I am designing a mathematical model for my control systems project and in that there is this block which measures the frequency of the wave. For the practical application I fed this wave into a micro ...
0
votes
3answers
380 views

Transmitting data from MATLAB to FPGA

This is about design of a JPEG compression/decompression scheme on an Altera FPGA. It is possible to have camera or SD card for image input and TV or SD card for image output. However, these ...