# Questions tagged [matlab]

MATLAB is a commercial numerical computer algebra system

420 questions
Filter by
Sorted by
Tagged with
29 views

### Help modifying solar cell to include water cooling on simulink?

Hi, for my honours project at university i am basically doing an analysis of how water cooling a solar panel improves efficiency by decreasing the temperature of a solar cell. Part of my thesis ...
51 views

38 views

### Difficulty stabilizing a system using sisotool on Matlab

I am trying to design a controller for a synchronous buck converter by using the siso tool on Matlab. The inductance value is 1.28mH, the filter capacitance is at 4.8uF and the load is a 240Ohm ...
40 views

### How to design this estimator?

I have the following problem to solve: I am really at loss of how to design the estimator for such a system and plot the closed loop step response. This is what I have so far in Matlab: ...
146 views

### Difference between parallel and standard form pid controller in simulink?

What is the difference between parallel and standard form of pid controller that is provided by pidtool in Matlab simulink? In terms of block diagram?
111 views

### Cutoff frequency of transfer function at -6 dB

I'm trying to design a second order low-pass filter using the following transfer function: $\ H(s)=\frac{f_c^2}{s^2 + 2 f_c s +f_c^2}$ with cutoff frequency fc = 3400 Hz Whenever I plot this, ...
17 views

### Possible inconsistencies in solution to second order transfer function step response

I'm trying to use matlab to solve the second order DE for car suspension for a particular oscillation period and overshoot percentage (0.5s and 5%). I thought I had solved it but I've found some ...
23 views

### Using symbolic expression to store and fplot summation (symsum) - truncated Fourier series

I need help to: Create a symbolic expression of a summation; Using fplot, plot this summation for the interval between -1<=t<1 In other words, create a symbolic expression for xN(t) for N= 1,3,...
59 views

### Trouble connecting to temperature controller using MODBUS,RS485 and MATLAB

I am trying to communicate with a temperaturature controller ATR-401 using MATLAB but i am having trouble just connecting to it and reading temperature data.I have set baud rate, data bits, parity and ...
39 views

### Read Data from Temperature Controller using MATLAB, Need Help

I am trying to read data from a temperature controller called ATR-401 using MATLAB's tool box called Instrument Control Toolbox but every time i try to read data from it i get an error "A timeout ...
84 views

### Matlab code to derive the overall difference equation relating two systems

Using Matlab, I am trying to: Get the overall difference equation relating to z[n] to x[n] and check if z[n] = x[n] is a valid solution to the overall difference equation I have two signals given ...
133 views

### Reading data from Pressure Sensor

I am having trouble reading data from a pressure sensor using MATLAB. The pressure sensor is connected to an NI 9219 Analog Input Device. Firstly, i tested the device to make sure it is working using ...
285 views

### Matlab code to determine and plot impulse response

I have a signal y[n], represented by the vector y in this form y[n] =x[n] + ax[n−N] About this signal: x[n] is the uncorrupted speech signal which has been delayed by N samples and added back in ...
59 views

### How to use MATLAB to observe the effect of multiple damping factors?

I want to use MATLAB to observe the effect of changing zeta (damping factor) on system response? Here is a m-file code that plots three responses: underdamped, overdamped and critically damped. <...
26 views

### Calculating energy signal with symbolic math toolbox

I am trying to do calculate, via integration int, the energy of a signal using Matlab. My signal is defined this way: f(t) = t * (u(t) - u(t-2)). For this, I have the following code: ...
34 views

### Setting up parameters for generating QAM signals

I am trying to simulate multiple baseband QAM signals for random data at varying power levels, data-rate, carrier frequency, and modulation order using MATLAB. Here is how I set up the parameters: <...
74 views

### How to determine value of t when plotting a signal

I'm trying to implement this model inatlab: I know that Ri = 2 and Si = -0.05+3j, ignore n(t). I want to plot the signal in time response, this is what I got so far: ...
35 views

### How to model RF-PA in MATLAB when the design values are given?

I have been given a designed Class-E RF-PA - the technology used for the MOSFET, the inductor and capacitor values attached to the MOSFET (as given in the figure below). I am suppossed to find the AM/...
185 views

### Vanishing of Gibbs Phenomenon in MatLab

I was trying to represent a square wave with its Fourier series in Matlab. But as I increased the number of terms in Fourier series expression, the Gibbs phenomenon vanished and the edges of the ...
207 views

### Embedded C - USB stack, arm-none-eabi-gcc settings and Matlab interface

I am using LPCOpen (latest realese available for LPC4370) and the usb stack provided within it. I need to build a simple FSM to control the mcu with Matlab and send data from Matlab to the mcu and ...
53 views

### Phase noise of a digital PLL

I assume the reader is aware of how a DPLL works. The DPLL oscillates with a frequency of $F_{out}$. The DCO free running frequency is $F_{free}$. In the model of our DPLL we've only considered ...
27 views

### What is the time axis array after we convolve two functions in Matlab after sampling it with frequency $f_s$?

Suppose we have a continuous time function $f(t)$ , we sample it at frequency $f_s, (t = -5:1/f_s:5)$, and store it in an array $a$ in Matlab. Now we convolve it with itself using \\$b = conv(a,a)...
623 views

### Relationship Between Root Locus Pole and Percent Overshoot and Gain in MATLAB

I have a peculiar confusion regarding the relationship between a closed-loop pole on a root locus plot and its gain and percent overshoot. I have found a point on the root locus plot that MATLAB ...
33 views

### How do we interpret frequency from fft command in matlab?

How do we interpret frequency from fft command in matlab? When I apply fft to a sampled function(@ Fs) and I get peaks at some values in the fft array. How do I know what frequency in Hertz does it ...
87 views

### MATLAB:Reducing Transfer Functions using: Append&Connect technique VS Feedback,cloop,series&parallel command technique

The problem here was when I tried to counter check my answer using algebra and the two techniques above I got three different outputs all together.. The code: ...
25 views

### Is it possible to predict the operating state of a power system (using MATLAB) if I have calculated the voltages at all nodes by state estimation?

If I have calculated all the node voltages by state estimation, is it possible to predict which operating state my system is at? By operating state, I mean any of the following: ...
92 views

### Sawtooth to Straight line in Simulink

There is a component in LabVIEW called as "Inverse Modulus". It is used to eliminate the discontinuous jump that would occur when the DAC encoder of the hardware reaches the limits of this range. ...
151 views

### Why am I getting non-sinusoidal output for sinusoidal input in a mass-spring system?

A mass-spring system is represented by the following transfer function $$H(s) = \frac{s^{2} + 0.1s + 10}{s^{4} + 0.2s^{3} + 20s^{2}}$$ For a sinusoidal input I am getting a non-sinusoidal output, ...
112 views

### First-order hold interpolation in matlab

I have a sinusoidal signal x(t) sampled with period 1/fs. The result is the discrete signal x[n], where x[n]=x(t)|t=nT. Then I perform an upsampling of factor, let's say, 8 to increase the sampling ...
349 views

### Pulse generator in Simulink Matlab

I want to generate a pulse in Matlab Simulink fixed point solver. The step size in the Simulink fixed solver is 1e-06, but I need a pulse width of 2e-08. The figure shows the clear requirement of ...
66 views

### CORTEX-M LPCOPEN USB-VCOM basics - proper way to build a simple FSM

I'm working on a project involving the LPC4370 mcu (LPC link 2 eval board) and Matlab. I need my embedded code to be user-reconfigurable from matlab: the user sends a command, the mcu replies. I'm ...
76 views

### Obtaining Plant Input data from System Identification (PID)

I'm trying to obtain a mathematical model from a physical plant using MATLAB. Using the system identification tool you need the plant input and output data. I'm struggling to match the theory to my ...
96 views

### Node analysis with voltage source, How to solve with matlab?

So i have this matlab homework where i need to find voltage on Y2 and Y3 using node analysis. Arrows indicate direction of current flow in branches. simulate this circuit – Schematic created ...