Answered

how to choose windwo size in the EMG signal ?

I am not certain where you read it either, or the rationale for that particular window length calculation. I am not aware of ...

how to choose windwo size in the EMG signal ?

I am not certain where you read it either, or the rationale for that particular window length calculation. I am not aware of ...

12 dagar ago | 0

| accepted

Answered

How can I read CDF file?

Without having the file to work with, writing specific code to work with it is not possible. Start with the cdfread function...

How can I read CDF file?

Without having the file to work with, writing specific code to work with it is not possible. Start with the cdfread function...

12 dagar ago | 0

| accepted

Answered

How to store users input in a file?

If you want to read the file, try something like this — % name = input('What is your name? ','s'); % age = input('How old are...

How to store users input in a file?

If you want to read the file, try something like this — % name = input('What is your name? ','s'); % age = input('How old are...

13 dagar ago | 0

Answered

How do I fit a 3rd order polynomial Basis using fitrgp?

From the documentation, using a table as input: Each row of Tbl corresponds to one observation, and each column corresponds to...

How do I fit a 3rd order polynomial Basis using fitrgp?

From the documentation, using a table as input: Each row of Tbl corresponds to one observation, and each column corresponds to...

13 dagar ago | 0

| accepted

Answered

Displaying Text on Paper

Without knowing more about this, one option would be to use the axis function to extend the axis limits. Then the text function...

Displaying Text on Paper

Without knowing more about this, one option would be to use the axis function to extend the axis limits. Then the text function...

15 dagar ago | 0

Answered

How to use Matlab to generate a discrete uniformly distributed decimal with a value range of {0, 0.05} and a step size of 0.01?

Perhaps something like this — rv = randi([0 5], 1, 100)/100 figure histogram(rv, 5) grid .

How to use Matlab to generate a discrete uniformly distributed decimal with a value range of {0, 0.05} and a step size of 0.01?

Perhaps something like this — rv = randi([0 5], 1, 100)/100 figure histogram(rv, 5) grid .

15 dagar ago | 0

| accepted

Answered

User defined function for curve fitting, but the defined function is complicated

I thought it had something to do with scaling . That would depend on the magnitude of since it might be difficult to fit extre...

User defined function for curve fitting, but the defined function is complicated

I thought it had something to do with scaling . That would depend on the magnitude of since it might be difficult to fit extre...

16 dagar ago | 0

| accepted

Answered

Creating ID using year and event number

Try this — load('sample.mat') whos('-file','sample.mat') sample count = cumsum([1; diff(sample.Var1) < 0]); ID = year(...

Creating ID using year and event number

Try this — load('sample.mat') whos('-file','sample.mat') sample count = cumsum([1; diff(sample.Var1) < 0]); ID = year(...

17 dagar ago | 0

| accepted

Answered

Smoothing or special techniques to resolve uncertain peaks are required!!

If you want to make it smooth, there are a few options. One of course is to calculate the Fourier transform, choose a suitable ...

Smoothing or special techniques to resolve uncertain peaks are required!!

If you want to make it smooth, there are a few options. One of course is to calculate the Fourier transform, choose a suitable ...

18 dagar ago | 2

| accepted

Answered

How can I import 2D antenna radiation pattern into 2D cartesian coordinates environment?

I am not certain what you want or what your current data are. (I also do not have significant experience with the Antenna Toolb...

How can I import 2D antenna radiation pattern into 2D cartesian coordinates environment?

I am not certain what you want or what your current data are. (I also do not have significant experience with the Antenna Toolb...

18 dagar ago | 0

| accepted

Answered

Hello, How can I make the output timetable look similar in the photo, so it will 901*1 instead of 901*3

You can do that once, however if you write it and then read it, it will lose the original formatting. To illustrate — Time ...

Hello, How can I make the output timetable look similar in the photo, so it will 901*1 instead of 901*3

You can do that once, however if you write it and then read it, it will lose the original formatting. To illustrate — Time ...

19 dagar ago | 0

| accepted

Answered

Data Organization in ECG Analysis: Separate Leads or Individual Signals

I am not certain what you want to do, or what question you are asking. In general, EKG data are analysed column-wise, with a t...

Data Organization in ECG Analysis: Separate Leads or Individual Signals

I am not certain what you want to do, or what question you are asking. In general, EKG data are analysed column-wise, with a t...

19 dagar ago | 0

| accepted

Answered

Multiple Regression and Intercept

I see nothing wrong with the code, and it conforms to the example in the regress documentation. The only suggestion I have is...

Multiple Regression and Intercept

I see nothing wrong with the code, and it conforms to the example in the regress documentation. The only suggestion I have is...

19 dagar ago | 1

Answered

Plotting Cylinder Surface Using fill3

It is easier to use the surf function for this — % figure() % theta = 0:0.5:2*pi; theta = linspace(0, 2*pi, 11); xs = [cos(...

Plotting Cylinder Surface Using fill3

It is easier to use the surf function for this — % figure() % theta = 0:0.5:2*pi; theta = linspace(0, 2*pi, 11); xs = [cos(...

20 dagar ago | 0

| accepted

Answered

Is the pvalue from an lmfit table derived from a two-sided or one-sided t-test?

For what it’s worth, when I updated my polyparci function, I used a default two-sided t-distribution to calculate the probabilit...

Is the pvalue from an lmfit table derived from a two-sided or one-sided t-test?

For what it’s worth, when I updated my polyparci function, I used a default two-sided t-distribution to calculate the probabilit...

21 dagar ago | 1

| accepted

Answered

I want to solve the equation in the picture and use ode45 to solve it, but after running for 5 hours there is still no result, I would like to ask if the program is written wrong or is there any optimization?

The system is ‘stiff’ probably because of the large variation in the magnitudes of the parameters. Using a stiff solver (ode1...

I want to solve the equation in the picture and use ode45 to solve it, but after running for 5 hours there is still no result, I would like to ask if the program is written wrong or is there any optimization?

The system is ‘stiff’ probably because of the large variation in the magnitudes of the parameters. Using a stiff solver (ode1...

21 dagar ago | 0

| accepted

Answered

Plot frequency responses based on the ODE results

I am not certain what result you want. The freqz function only works on Signal Ptocessing Toolbox filter results. To use the C...

Plot frequency responses based on the ODE results

I am not certain what result you want. The freqz function only works on Signal Ptocessing Toolbox filter results. To use the C...

21 dagar ago | 0

| accepted

Answered

How do I perform a sin^2 or a cos^2 fit for my data?

Perhaps this — x = [0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180]; y = [880,1200,1900,2700,3300,3600,3000...

How do I perform a sin^2 or a cos^2 fit for my data?

Perhaps this — x = [0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180]; y = [880,1200,1900,2700,3300,3600,3000...

21 dagar ago | 0

| accepted

Answered

Training, validating, and testing model.

Perhaps I am missing something in your problem statement, however linear regressions such as that done by fitlm is a least-squar...

Training, validating, and testing model.

Perhaps I am missing something in your problem statement, however linear regressions such as that done by fitlm is a least-squar...

21 dagar ago | 0

Answered

how can I write a function of another function of two variables

Create the function and then call it in the function — rho = @(t,z) something; mu = @(t,z) c .* log(rho(t,z)*b ./ (1 - rho...

how can I write a function of another function of two variables

Create the function and then call it in the function — rho = @(t,z) something; mu = @(t,z) c .* log(rho(t,z)*b ./ (1 - rho...

22 dagar ago | 0

Answered

function where input is also output

You can certainly return the input as an output if you want to. A simple example — x = 42; [result_val, arg_val] = square_...

function where input is also output

You can certainly return the input as an output if you want to. A simple example — x = 42; [result_val, arg_val] = square_...

22 dagar ago | 0

Answered

Almanac function not work

It works here — format longG ref_pov=almanac("earth","bessel","meter") Since it worked previously, you may have a path pro...

Almanac function not work

It works here — format longG ref_pov=almanac("earth","bessel","meter") Since it worked previously, you may have a path pro...

22 dagar ago | 0

Answered

The graph doesn't disply

It actually does work. The problem is that the red line overplots it since it is plotted later, and hides the blue line. If yo...

The graph doesn't disply

It actually does work. The problem is that the red line overplots it since it is plotted later, and hides the blue line. If yo...

22 dagar ago | 1

| accepted

Answered

Derivative of table between NaN values

Depending on what you want to do, use either fillmissing or rmmissing to either interpolate the NaN values (fillmissing) or remo...

Derivative of table between NaN values

Depending on what you want to do, use either fillmissing or rmmissing to either interpolate the NaN values (fillmissing) or remo...

22 dagar ago | 0

Answered

Need to change the direction of polar plot theta tick labels from counterclockwise to clockwise.

Use the ThetaDir name-value pair to reverse the angle direction. (As a pilot myself, I appreciate this!)

Need to change the direction of polar plot theta tick labels from counterclockwise to clockwise.

Use the ThetaDir name-value pair to reverse the angle direction. (As a pilot myself, I appreciate this!)

23 dagar ago | 0

| accepted

Answered

Tabulating the data obtained for my Matlab code

Create a table array with your variables (that I assume are ‘xi’ and ‘yi’ here) and then use writetable to save them as an Excel...

Tabulating the data obtained for my Matlab code

Create a table array with your variables (that I assume are ‘xi’ and ‘yi’ here) and then use writetable to save them as an Excel...

23 dagar ago | 1

Answered

How can I make the layout in the attached image with tiledlayout

It took a few experiments to get this to work. Try this — x = 0:0.1:31; y = sin((1:5).'*x*2*pi/32); figure tiledlayout...

How can I make the layout in the attached image with tiledlayout

It took a few experiments to get this to work. Try this — x = 0:0.1:31; y = sin((1:5).'*x*2*pi/32); figure tiledlayout...

24 dagar ago | 0

| accepted

Answered

how to plot from CSV files?

It would help to have your data rather than an image of it. In the interim, try something like this — imshow(imread('Screen...

how to plot from CSV files?

It would help to have your data rather than an image of it. In the interim, try something like this — imshow(imread('Screen...

25 dagar ago | 0

| accepted

Answered

Paramter optimization by curve fitting

The ‘options’ problem was easy to fix. Just use the name of the options structure you created in your ga call. There are a ...

Paramter optimization by curve fitting

The ‘options’ problem was easy to fix. Just use the name of the options structure you created in your ga call. There are a ...

25 dagar ago | 0

Answered

Find a peak within a pattern

It is not clear to me what you want to identify. You can easily identify the starting and ending points of the force signal u...

Find a peak within a pattern

It is not clear to me what you want to identify. You can easily identify the starting and ending points of the force signal u...

25 dagar ago | 0