Answered
Noise in ECG data
Hi Talha, Here is some improved code: %% Computations: x = d; [N,P] = size(x); Fs = 500; dt = 1/Fs; t = d...

15 years ago | 0

Answered
Noise in ECG data
Hi Talha, # Why are you using low-pass and band stop filters? Why not use two band-stop filters? # Is the noise you are trying...

15 years ago | 0

Answered
phase VS frequency block !!!
*MATLAB Function Block* Another possibility would be to use the _MATLAB Function Block_ (R2011a or later) or the _Embedded MATL...

15 years ago | 0

Answered
phase VS frequency block !!!
*FFT and Phase/Magnitude Blocks* You can use the "FFT" block to convert the signal from the time-domain to the frequency do...

15 years ago | 0

Answered
problem of getting data from Simulink to Workspace with Matlab Fcn block
Simulink does not support character or string data types. I would recommend that you do these calculations in MATLAB instead. ...

15 years ago | 0

Answered
Noise in ECG data
Hi Talha, # Do you know the sampling rate of the signal? # Also, what is the size of the time-domain representation (how m...

15 years ago | 0

Answered
Error?
Please help us help you: # What product(s) are you using? # Describe what you were doing just prior to receiving this error?...

15 years ago | 2

Answered
Digital filters
Hi Kim, Do you have access to the Signal Processing Toolbox in MATLAB? If so, you can use the |fdatool| to design the filter...

15 years ago | 0

| accepted

Answered
Splitting an excel file using matlab
Yes, you can do this task with MATLAB. Please try the following: inputFile = 'myfile'; A = xlsread([ inputFile '.xlsx' ]);...

15 years ago | 1

| accepted

Answered
Engineering Dynamics problem in Matlab, how is it done?
Also, here is an excellent book for beginners: <http://www.amazon.com/MATLAB-Introduction-Applications-Amos-Gilat/dp/04707678...

15 years ago | 0

Answered
Engineering Dynamics problem in Matlab, how is it done?
1. Please complete the following tutorial: <http://www.mathworks.com/academia/student_center/tutorials/register.html Intera...

15 years ago | 0

Answered
Checking the stability of an LTI system
The transfer function has a single pole at _z_ = _a_. To ensure stability, all poles must be located inside the unit circle in ...

15 years ago | 0

Answered
m-file function as Simulink block
In your external MATLAB function, include the following line of code just after the function header: eml.extrinsic('pinv...

15 years ago | 0

Answered
How to programatically send Update Diagram command to Simulink
Hi Paulo, Although not ideal, the following line of code should work: Simulink.BlockDiagram.getSampleTimes(SimFileName); M...

15 years ago | 0

Answered
Can I launch a GUI directly from a folder?
If you are using Windows, you can create a |.bat| file that would launch MATLAB and immediately run a MATLAB script that would c...

15 years ago | 1

| accepted

Answered
Multilevel contour plots
The following code shows how to create a contour plot at 3 different locations other than the _Z_=0 plane: N = 20; L = 3;...

15 years ago | 1

Answered
Plotting contours with additional condition
Please try the following: thresh = 0.02; idx = ( (abs(imag(f)) < thresh) & (real(f)>=0) ); [C, h] = contour(x, y, idx, [...

15 years ago | 0

Answered
call and run an external program in matlab under windows
You can call an executable program from the command line using the exclamation point or the system command: >> !hello will ...

15 years ago | 0

Answered
Using a text file to title a plot.
The |title| function should work. For example: figure; plot(rand(50,1)); label = 'Some Random Numbers'; title(labe...

15 years ago | 0

Answered
Inverse FFT
The difference in what you have and what you want is a constant scaling factor of 2*pi. That means the shape of your result is ...

15 years ago | 1

Answered
Convert Color to Bone colormap
Please try: doc rgb2gray HTH.

15 years ago | 0

Answered
changing value in a 2d array
Please try the following: A(1,1) = 1; A(1,100) = 1; A(1,1000) = 1; HTH.

15 years ago | 0

| accepted

Answered
Mechanism for identifying row of matrix from a plot
I am not sure if this is a great idea, but it might help: t = 1:5; X = randn(100,5); Y = [ (1:100)' , X ]; plot(...

15 years ago | 0

Answered
Reading console output
You can execute your console application from within the MATLAB Environment by calling the |system| function from either the MAT...

15 years ago | 0

Answered
producing an equation to fit on a plotted data
Please try: sftool or cftool HTH.

15 years ago | 0

Answered
Identification of Resonance frequencies
The problem is that the array |f| is of size 1 x 16385, whereas the array |aH| is of size 30000 x 1. When you call |semilogy(f,...

15 years ago | 0

Answered
importing and read data file
You can use the |load| function to read the data from each MAT file into the MATLAB Workspace, and you can use the |plot| func...

15 years ago | 0

Answered
FDA Tool
The _SOS Matrix_ is an _M_ x 6 matrix that provides the unscaled coefficients for the _M_ second-order sections that, when casca...

15 years ago | 0

| accepted

Answered
different figures for nodes in clf plot
Please try: docsearch('"marker specifiers table"'); HTH.

15 years ago | 0

Answered
Contour Plot: DATA COLLECTED vs TIME in date and hours
Sorry, |hour| and |minute| are not included in base MATLAB (they are part of the Financial Toolbox). Please try this instead:...

15 years ago | 1

Load more