Respondida
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...

alrededor de 3 años hace | 0

Respondida
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 ...

alrededor de 3 años hace | 1

Respondida
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 ...

alrededor de 3 años hace | 1

| aceptada

Respondida
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...

alrededor de 3 años hace | 1

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 2

Respondida
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. ...

alrededor de 3 años hace | 2

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 1

Respondida
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 ...

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

| aceptada

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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 ...

alrededor de 3 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 0

Respondida
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...

alrededor de 3 años hace | 1

| aceptada

Respondida
Find the max psd
@vo, [This answer is a copy of my comment above. I intended my comment to be answer, but I posted it in the wrong place.] I a...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to catalogue a dataset during different stages of data filtering?
@Carter Hoffman, Here is an example. data1=randn(1000,5); %1000x5 array of random numbers size1=data1(:,5); ...

alrededor de 3 años hace | 0

Respondida
how to ues t_tide
@ke, the t_tide package includes may functions including t_tide.m. The code for t_tide.m has extensive comments describing its ...

alrededor de 3 años hace | 1

| aceptada

Respondida
How to plot the diffusion curve for different timesteps?
@Emily, I assume this is 1D diffusion, and you want to plot concentration versus position at t=0, t=500, t=1000, ... Before y...

alrededor de 3 años hace | 0

| aceptada

Respondida
third-order Newton’s interpolating polynomial
@ِAbo Alqahtani, Here is the start of a solution. You will learn a lot more about Matlab by finishing it yourself. Good luck...

alrededor de 3 años hace | 0

Respondida
Extract of data for the last time step
@University Glasgow, Please post the simplest possible code example that illustrates the issue you have. When you include code, ...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to plot a cylinder from a specified axis
@Telema Harry, r = 20; p0=[25,25,0]; %base location [X,Y,Z] = cylinder(r); h = 80; Z = Z*h; X=X+p0(1); Y=Y+p0(2); Z=Z+p0(...

alrededor de 3 años hace | 0

| aceptada

Respondida
How to change the visualization from lines to a patch
@Amanda, To help me create the maze, I made the image below. It could be helpful to future maze makers. Then I wrote a main ...

alrededor de 3 años hace | 0

| aceptada

Cargar más