A répondu
How to get the spectrum plot of a 5G NR signal generated by MATLAB?
@Susan, I downloaded and unzipped the large data file, waveform.mat, using the link you provided. I see that the signal is com...

3 mois il y a | 1

| A accepté

A répondu
What filtration should be used for a respiratory signal between 5 and 60 breaths per minute?
@Pawel Slazak, %% Load data a=importdata('RAW_signal.txt'); x=a.data(:,1); %x=channel 1 fs=25; ...

3 mois il y a | 0

| A accepté

A répondu
What filtration should be used for a respiratory signal between 5 and 60 breaths per minute?
@Pawel Slazak, pease attach the raw data. Please explain what your goal is, because this will determine what approach to take...

3 mois il y a | 0

A répondu
Take X Y Z coordinates and calculate kinetic energy
@Daanish Qureshi, The solution you described sounds good. It is implicit in your proposed solution that the particles do not i...

3 mois il y a | 0

A répondu
How to shift experimental data (not a function) in a loglog plot?
@Alfredo Scigliani, Multiply all y-values of the trace in quesiton by a constant. This will cause a parallel vertical shift on a...

3 mois il y a | 1

A répondu
What is the efficient way to loop though a multidimensional array in matlab?
@venu, Be sure to allocate all arrays and vectors before doing the looping. I don't think the order of looping will have a sig...

3 mois il y a | 1

A répondu
Scatter chart with colours from dark to light along the x-axis and blue to red along the y-axis
@T, b = [0 0 1]; % Blue r = [1 0 0]; % Red %x =[27.5 26.8 68 70.5 43.5 45.2 72]; %y = [7.2 3 7.9 1.7 4.23 1.057 0.89]; x ...

3 mois il y a | 2

| A accepté

A répondu
How to detect stride cycle of EMG with GRF data?
@Mario, You said in your original post that the EMG data was sampled at 2 kHz. You said in your comment: "I understand the Hz ...

3 mois il y a | 0

A répondu
How to detect stride cycle of EMG with GRF data?
@Mario, [Edit: change sampling frequency from 5000 to 500] You already have the binary vectors for left contact, right contact...

3 mois il y a | 0

A répondu
How can I align multiple curves on one plot to a central point?
@OmartheEngineer, It would help if you would attach the actual data as a .mat file or a text file for easy import. Your choce ...

3 mois il y a | 1

A répondu
Plot mean frequency of EMG signals
@Prawee Pongsing, Alty & Georgakis (2011), whom you cite, use their eqn.7 to compute the mean frequency. You do not have to ...

3 mois il y a | 1

| A accepté

A répondu
Scale 2D coordinates with respect to the centroid
@Alberto Acri, Let's call the curves "curve a" and "curve b". You want to map Xa1=194.887 to Xb1=222, and Xa2=320.887 to Xb2=2...

3 mois il y a | 1

A répondu
How to create a hysteresis loop
@Alethia, [I moved my code to the "Answer" section, which is where I should have posted it initially.] I relaize that you have...

3 mois il y a | 0

A répondu
1D heat conduction equation with FTCS method
@Mücahid, Since this is a homework problem, I will give some suggestions. The article here has a good description of the FTCS...

3 mois il y a | 0

A répondu
How to find the 5 minimum values in a multidimensional matrix and the indices to which these entries correspond.
@Charles Howman, A=rand(3,4) [r,c]=size(A); k=5; %number of values to find [minval,idx]=mink(reshape(A,[],1),k); minrow=mo...

3 mois il y a | 0

A répondu
How to solve gimbal lock logically?
@Kang Geonhui, My lecture notes on rotation matrices are attached. Lectures 2 and 3 include discussion of helical angles. The...

3 mois il y a | 2

A répondu
How to solve gimbal lock logically?
@Kang Geonhui, Yes, your plot illustrates what happens when you are near "gimbal lock". Interpolation is not a good idea. ...

3 mois il y a | 2

| A accepté

A répondu
Find Yaw and Pitch of center point of a line segment with respect to static frame
@VR, It is not possible to "calculate the position and orientation (roll, pitch, yaw) of the center point". A point does not h...

3 mois il y a | 0

| A accepté

A répondu
How to write a for loop to generate a new set of initial conditions based on a input value that changes over different time intervals.
@Ron_S, See attached code. I think you will be able to uunderstand what I have done by comparing the code to your version. It...

3 mois il y a | 0

| A accepté

A répondu
Calculate spectrogram with logarithmic-spaced frequencies
@dormant, I agree that the bottom plot in your example, which should have the frequencies evenly spaced on a log scale, appears ...

3 mois il y a | 0

A répondu
rotated plot gone wrong
@Sonia, Change [w,rh]=freqz(h,1,64); to [rh,w]=freqz(h,1,64); Good luck.

3 mois il y a | 1

A répondu
A function related with speed light and time
@Lewis HC, It is nice to see that you have made an attempt before posting your question. @Walter Roberson is exactly right as ...

4 mois il y a | 0

| A accepté

A répondu
Cross-correlation signal alignment
@Albert Zurita [edit: Add comment about circular correlation; correct typos.] You need to use a circular correlation, because ...

4 mois il y a | 0

| A accepté

A répondu
How to graph cdf?
@Estela, I agree with the comments of @John Morris. The probability that a random number generator for a continuous distributi...

4 mois il y a | 0

A répondu
How to find the QRS complex for this ECG signal?
@Susan, Perhaps the comments above constitute an answer to your question. ECGs=load('ECG'); ECG=ECGs.ECG; L = numel(ECG); t...

4 mois il y a | 0

| A accepté

A répondu
Interpolating Data in 2D Mesh or Surf Plot?
@Sees, [edit: I hit Submit belfore I was done] You say you want to interpolate z values at the points where z=0, and you want...

4 mois il y a | 0

A répondu
How to use pwelch for PSD?
@Tran, See my recent reply to @vo, here, regarding the use of Welch's method for EEG analysis. You can get identical results ...

4 mois il y a | 0

| A accepté

A répondu
PSD with Alpha(8-13HZ)
@vo, [edit: replace 8 with flo and 12 with fhi in the code to compute vector fA.] The data file you gave is a structure. The ...

4 mois il y a | 0

A répondu
Least Squares method code
@A, [edit: I adjusted the fprintf() lines to produce better output.] X = [0.8; 1.4; 2.7; 3.8; 4.8; 4.9]; Y = [0.69; 1.0; 2...

4 mois il y a | 0

A répondu
Get envelope of a cyclic curve
@Nikesh Maharjan, Use convhull() to find the smallest convex shape that wraps around the points. See code below. data=xlsread...

4 mois il y a | 1

| A accepté

Charger plus