Answered
editing a variable
Please try: Y = X(41:50); OR: Y = X(end-9:end); HTH. Rick

15 years ago | 0

Answered
Simulink communication in distributed system
No, those are not features of SimEvents. But, we do offer an add-on for MATLAB called the _Database Toolbox_ that does provide ...

15 years ago | 0

Answered
Simulink communication in distributed system
You may want to consider using _SimEvents_, which is an add-on package that works on top of Simulink. For more information: <h...

15 years ago | 1

Answered
Combine many matrices into one
Please try: X = [ A ; B ; C ; D ; ... ; J ]; HTH. Rick

15 years ago | 0

| accepted

Answered
FFT not matching with Continuous FT
Again, using _dx_ as the scale factor is perfectly valid and correct. The results you are seeing in practice do in fact match t...

15 years ago | 1

| accepted

Answered
FFT not matching with Continuous FT
One other thing I noticed in the code you posted: When you plot the spectrum, you should plot the _magnitude_ of the Fourier co...

15 years ago | 0

Answered
FFT not matching with Continuous FT
Technically speaking, it is not a question of whether one scale factor is "correct" and the other "incorrect". The issue is rea...

15 years ago | 0

Answered
FFT not matching with Continuous FT
You have scaled by the appropriate constant for the _Continuous_ Time Fourier Transform (CTFT), but the |fft| function computes ...

15 years ago | 0

Answered
USE fft(x) as a highpass filter
You are welcome. If you don't mind, could you please "Accept" the answer that helped resolve this issue? Thanks! Rick

15 years ago | 2

Answered
Fitting exponential
I will assume that you have the 15,000 data samples stored in the MATLAB Workspace as a 15,000 x 1 column vector called |dataset...

15 years ago | 3

| accepted

Answered
Add model to another model
There are (at least) two different ways to do so. The first is to create a sub-system from your model, and to store that sub-...

15 years ago | 1

Answered
Can I set a range for spectrogram Analysis
Hi Ivy, There are several issues with the code that you have posted. Each of these issues falls into one of two broad categori...

15 years ago | 1

| accepted

Answered
can I use FFT to determine the variable frequency?
You may want to try the |spectrogram| function. For more information: >> doc spectrogram HTH. Rick

15 years ago | 0

| accepted

Answered
Creating Variables from Excel
You can use the |eval| command to convert a string into a variable, although I generally recommend against using |eval| unless a...

15 years ago | 0

| accepted

Answered
Creating Variables from Excel
As an alternative to using Excel, have you considered creating a GUI in MATLAB for the users to enter the values of these vari...

15 years ago | 0

Answered
How can I count the number of times a number appear in a vector?
Please try the following: A = [ 1 2 3 1 1 6 3 4 2 2 1 1 1 ]; x = unique(A); N = numel(x); count = zeros(...

15 years ago | 11

| accepted

Answered
regarding about rician channel
>> doc ricianchan

15 years ago | 0

Answered
How do I access and modify only the non diagonal entries in a matrix?
Please try the following: M = 8; N = 5; X = randn(M,N); idx = eye(M,N); Y = (1-idx).*X; Z = X(~idx); HT...

15 years ago | 4

| accepted

Answered
simple quastion about randn and mean of random noise
The variable |n| is a column vector of 1000 instances of a Random Variable of mean 0 and variance 1. In the first case, if ...

15 years ago | 0

| accepted

Answered
How do I obtain sampling points inside a pre-defined triangle?
Here is some code to get you started. It creates a two patch objects: one that defines a triangle in 3D space based on the X,Y,...

15 years ago | 0

Answered
Variable definition
# Instead of having 200 separate variables, it might be easier to create a single variable containing the 20,000 values arranged...

15 years ago | 0

| accepted

Answered
Sorting raw data
Please provide the following information: # What specifically are you trying to do? # What have you tried so far? # What is...

15 years ago | 0

Answered
emlc mxArray issue
# Could you please fix the indentation of the code in your question to make it a bit easier to read? # I do not see where you ha...

15 years ago | 0

Answered
Is concatenation of signals possible in matlab
Please try the following: % Exponential signal: u = exp(...); % impulse signal: v = zeros(...); v(...) = 1; ...

15 years ago | 0

| accepted

Answered
Delay time and FFT
As for the FFT, please try: >> doc fft HTH. Best

15 years ago | 0

Answered
Delay time and FFT
Please see the following answer: <http://www.mathworks.com/matlabcentral/answers/10742-time-delay-for-time-domain-function Ti...

15 years ago | 0

Answered
Generate DoE matrix and test plan
Do you have access to the Statistics Toolbox? If so, there are some functions provided there related to DoE and SPC. HTH. ...

15 years ago | 0

Answered
Matrix n x n input
By the way, you can always find out the value of |n| even if you do not know what it is in advance. You can also find out wheth...

15 years ago | 0

Answered
Matrix n x n input
You do not need to know the value of |n| at the beginning, but depending on what you want to do with your matrix, you may or may...

15 years ago | 0

Answered
Noise in ECG data
Everything that you are doing looks correct, as far as I can tell. When you say that "Passing through the filters causes ripple...

15 years ago | 0

Load more