MATLAB is a commercial numerical computer algebra system

learn more… | top users | synonyms

0
votes
1answer
38 views

Parsing .s2p data through an automation script to plot graphs of the various s-parameters

Need to find a way to quickly decipher and plot s-parameters for tons of .s2p files in a short period of time. In specific, I need to plot the angle of the s-parameters versus frequency and then the ...
0
votes
0answers
30 views

Reading C++ data on matlab [migrated]

For my final yr project I want to create an oscilloscope using a fpga and ADC.hardware part is almost done and my unit can sample and send samples thru USB to read as decimal integers. Currently C++ ...
2
votes
1answer
64 views

Calculation of inductance of rectangle coil

I'm currently working on a project about inductance. I want to calculate the inductance of a rectangle-shaped coil with a pitch different from zero. I tried this by applying the law of Biot-Savart. If ...
1
vote
2answers
223 views

Can I run matlab on a microcontroller?? and if yes which one?

I am working on a complicated robotics project which involves MATLAB image processing algorithm and LEGO MINDSTORMS interface as well as an Arduino. The system works dependently in a sequence ...
0
votes
0answers
34 views

Analytical design of bandpass filter: MATLAB function documentation

I am trying to "design" a blackbox bandpass filter (butterworth or chebyshev) based on parameters such as \$f_{min}\$, \$f_{max}\$, bandwidth(BW)/Q-factor, and etc, using Visual Basic. However I am ...
0
votes
0answers
18 views

How is it possible to simulate the predefined IM motors in MATLAB/Simulink with a delta connection?

The default of stator connection of induction motors in Simulink is Y. I'd like to have Delta connection; however, this option has not been defined there.
0
votes
1answer
46 views

Digital Signal Analysis: Sinusoid and Filtering problem

I was wondering if someone could help me derive the answers for (ii) and (iii)? These are exam review problems, not homework, and I have no idea how to solve them. I have been trying to reference my ...
0
votes
0answers
86 views

What is RL, RLC Transfer Function graph in frequency domain?

I made function in Matlab to draw graph of absolute value and phase of H(f). But i don't know how the graph supposed to be in RL and RLC circuit. So i'd like you to check if graph can be correct. ...
0
votes
1answer
127 views

PID gains from the transfer function of a plant

I am trying to calculate gains ( Kp, Ki, Kd ) of a PID controller. I have to improve the response of a plant. I already have the Transfer function of the plant. I was wondering if matlab has some ...
1
vote
2answers
113 views

How do I transmit an FM signal from the VGA_R port on the DE2-115?

The best reference for my question would be this youtube video: https://www.youtube.com/watch?v=4VW017qPT6Y I'm trying to do exactly what they did with the following resources: Matlab 2013a with ...
-3
votes
3answers
168 views

How to obtain sine wave back after fft?

I performed fft in matlab on y=sin(2*pi*t), with a time period of T=0.015. Now I want to get the original function back in the time domain, but I'm not sure how I can use ifft to do that. It gives me ...
2
votes
1answer
125 views

Interfacing Matlab with a NI real time target (cRIO 9073)

I currently have a control system implemented in Matlab that controls a vehicle. The tracking is performed using an overhead camera, and commands are sent to the vehicle via xbee. I have now added a ...
2
votes
0answers
150 views

I need to calculate the average power spectral density after passing packets through a butterworth filter using MATLAB

I am trying to generate 100 packets(row vectors each of size 8192) of random bits(1,-1),filter them using butterworth filter and then plot their average power spectral density. I have to do this ...
0
votes
0answers
279 views

Plotting reflection coefficient magnitude vs frequency in MATLAB

I am trying to plot a function (t) with respect to w in MATLAB. However, the output that I am seeing is showing 0 for all w within the defined range. This is not what I am supposed to be seeing. The ...
2
votes
1answer
104 views

How to interpret this bode diagram

I have this bode diagram. I am wondering how to interpret this. We start off with 90 degree phase lag e.g. a integrator. Then at approx 12 Hz we drop another 180 degrees indicating two integrators. ...
1
vote
1answer
63 views

Accurate frequency output through external speaker

I'm creating an application where I want to output a constant frequency through a speaker to test the frequency range of a microphone device I've developed. The problem is, my application measures ...
1
vote
1answer
95 views

Measurement system with MATLAB real-time windows target and NI PCI boards

I'm setting up an experiment which employs MATLAB real-time windows target and NI PCI-6229 and carrier SC-2345 board while I'm wondering about the hardware's compatibility It's given from here ...
0
votes
0answers
347 views

FFT Analysis using powergui (SimPowerSystem)

How to do FFT analysis using powergui tool available in matlab
2
votes
2answers
378 views

Why my full-wave bridge type diode rectifier circuit begins an analysis from 8. second on Matlab Simulink?

Hi, I am working on Matlab Simulink's work page to get full-wave and half-wave bridge-type-diode rectifiers as could be seen in the picture. But, according to my Scope2 screen when I double clicked ...
0
votes
1answer
730 views

Simulating a Flyback converter using Matlab / Simpowersystems, cannot get it to work, any tips?

I have created a flyback converter model using Simpowersystems in Simulink/Matlab. But it always gives me the wrong answer! I have simulated the same system using PLECS and Simscape/simulink and got ...
0
votes
0answers
32 views

How to use rank 1 covariance matrix for designing a kalman filter

I was trying to estimate the covariance matrix of the measurement noise of a (simulated) MIMO system. Turns out. In matlab cov(data) gives me a rank 1 matrix. I checked it. And I noticed that all ...
0
votes
1answer
103 views

Affine Non Autonomous State Space system

Normally We all know the state space model of the the form der(x) = F*x(t)+G*u(t) y = H*x(t)+J*u(t). However I came across a state space model which has the following form der(x) = F*x(t)+G*u(t) + ...
0
votes
0answers
37 views

Statistical signal modeling in Matlab

I want to build a detector of sorts. Say I have a bunch of signals and they all share some patterns, like some peaks in frequency or something more complicated that I can't bother to calculate by ...
3
votes
1answer
301 views

How can I high pass (DSP) filter a low frequency signal without introducing lag?

I need to high pass filter a signal, and my design just isn't cutting it. The part that's making it tricky is that I can't tolerate lag. I am sampling at 20Hz, the signal I care about is 1/12 to ...
1
vote
3answers
338 views

Describing step response in terms of poles and zeros of transfer function?

me and a friend are stuck describing something, we're both coming to terms with using matlab and we're trying to understand the design of a simple control system for controlling the steady-state error ...
3
votes
0answers
376 views

Kalman filter on linear acceleration for distance

In my application to calculate displacement from motion of accelerometer, I am using kalman filter to improve the displacement accuracy. Please note I am aware of ineffectiveness of acceleration for ...
0
votes
1answer
141 views

use ADSL modem like a analog to digital converter

How to input a signal to a ADSL modem (in phone line input) that such a simple sinusoidal signal and get same signal by computer ? ADSL modem connected by network cable and usb cable is The software ...
0
votes
1answer
142 views

Discrete Time Integrator (VS) Continuous Integrator

I am trying to Model control for a Micro-controller which (under Real Time Development) does not support Continuous time solver. So, instead i have to use Discrete Time Solver. How do i replace SECOND ...
-1
votes
1answer
151 views

How to interpret a Current Value into a PWM signal percentage?

I have a maltab model, output of which (from an RL circuit) is a value for current. I want to interpret this value of current into a PWM signal with frequency of 1000Hz and duty cycle of 50%. I have ...
4
votes
1answer
2k views

MATLAB to VHDL conversion

How to convert any MATLAB code(.m file) to VHDL(.hdl code). As i have to use my image processing code in a FPGA kit. Any solution? Possible method: Using hdl coder in simulink, converting the ...
0
votes
0answers
129 views

Long Transmission line

Can we model a long transmission line in simulink matlab using PI sections? Or we have to simulate it using equations in matlab function?
0
votes
0answers
315 views

Not getting pure sine wave in simulnik matlab

I should be getting a pure sine wave. But it shows sine wave that is peak at top, and not smooth.So what should be the error. It shows following warning ...
-1
votes
2answers
249 views

Matlab audio signal through audiometer

I am very new to audio processing and I am using matlab to produce a signal to be presented through an audiometer. The way I am doing it is as follows: 1) Set the dB amplitude level in my GUI to 0dB ...
0
votes
3answers
554 views

Audio Signal dB levels Matlab

I am trying to develop a GUI in MATLAB to allow the presentation of a tone. One of the input parameters is the dB the user wants. So the way I tried to do this is: y = factor * sin (2*pi*500*t); ...
-1
votes
1answer
168 views

Removing noise on Matlab

I chose a sine signal, let's say : Us=2*sin(2*pi*Fs*t) with Fs=800 ! Then I introduced a random noise to this signal. The aim of my program is to increase the SNR. The first method was to increase ...
2
votes
1answer
147 views

phase estimation from I and Q

let say I have a discrete sine signal. I build the I and Q channel according to sampling with a frequency 4*time the signal frequency. that means multiplying the signal with [1 1 -1 -1.....]. in ...
3
votes
2answers
335 views

Amplitude Modulation Concepts

I am currently learning about telecommunications but I have some concept issues. Firstly, does it matter if I am using cosine or sine in the equation? I understand that they are basically the same ...
-1
votes
1answer
609 views

How to control an LED light by the output of a matlab program?

In my project, I'm designing the software to control a door using fingerprints, so I have 2 possible outputs: 1-door open, 2-door not open. I need to change this output to an LED as an example (red ...
1
vote
1answer
346 views

Why is MATLAB used so much in industry when there's other software that can do a better job? [closed]

All the classes I'm taking require the projects to be done in MATLAB when there are times that C++ would be much better to use. One time the professor took three hours to find a transfer function when ...
2
votes
1answer
142 views

Voltage form at diode bridge

I want to find the output voltage of a circuit like this: and this is my Matlab code to solve it: ...
1
vote
0answers
149 views

Coupled LC Resonator in MATLAB

I am designing a dual-mode resonator with the following Circuit Model and Frequency Response! ADS Circuit Model: Frequency Response: I need help with the modelling of my circuit model in ...
2
votes
1answer
577 views

Simulating PID controller in Matlab

I am trying to explore PID control with a simulation. My problem is that the derivative term does not behave as expected in my simulation: No matter how large its coefficient it seems unable to ...
0
votes
1answer
58 views

Downsample vs custom latency register

Is there a difference between downsample block (eg. in matlab) versus a register with custom ...
0
votes
1answer
219 views

For loop does not compile in Matlab mcode using Xilinx block

I have a simple code in xilix type mblock in simulink: function q = test1( n) q = 0; for i = 1:n q = i; end; end If I run this code naively in matlab ...
0
votes
0answers
469 views

How do i calculate %THD using matlab

I have a .mat file that contains one period of a periodic signal. How do I use the exponential Fourier series and the definition of the total harmonic distortion to get total harmonic distortion of ...
0
votes
0answers
90 views

Simulating time variying multipath channel in matlab

I need to simulate a time variying multipath channel with a specific doppler frequency in matlab. How can I do that?
0
votes
1answer
345 views

how can i use “e” in MATLAB [closed]

is any other way to express this function so i can plot it in matlab over the range -1:.1:5? continuous signal: x(t) = 10e^(-3t)*u(t) MATLAB does not recognized "e",
0
votes
2answers
399 views

Finding Thevenin equivalent

I'm looking to find the Thevenin equivalent of two parallel voltage sources where each source has some internal resistance as well for simulation in Matlab. I don't know where and how exactly to put a ...
1
vote
1answer
497 views

Estimating a sinc period and width of a rectangular pulse

For a rectangular pulse that has as a fourier transform of a sinc function like so: How can I estimate its sinc period in the frequency domain and compute the width of the rectangular pulse in the ...
2
votes
1answer
459 views

How can I model this linear power system in MATLAB?

For my power system, let us suppose it has the following dynamic model: \$\ x ' = f(x,u)\$. This dynamic model consists of four first order differential equations (see below). Then, I linearized ...