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

etwa 2 Jahre vor | 0

| akzeptiert

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

etwa 2 Jahre vor | 0

| akzeptiert

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

etwa 2 Jahre vor | 0

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

etwa 2 Jahre vor | 0

Beantwortet
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_...

etwa 2 Jahre vor | 0

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

etwa 2 Jahre vor | 0

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

etwa 2 Jahre vor | 1

| akzeptiert

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

etwa 2 Jahre vor | 0

Beantwortet
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!)

etwa 2 Jahre vor | 0

| akzeptiert

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

etwa 2 Jahre vor | 1

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

etwa 2 Jahre vor | 0

| akzeptiert

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

etwa 2 Jahre vor | 0

| akzeptiert

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

etwa 2 Jahre vor | 0

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

etwa 2 Jahre vor | 0

Beantwortet
How to create a function and call it?
See the documentation section on Function Basics.

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Fitting a data set by optimising multiple parameters
Perhaps something like this — T1 = readtable('Ask_17.05.2024.xlsx') a = T1.a; a(1) = 1E-4; ...

etwa 2 Jahre vor | 0

Beantwortet
shifting axis on both ends so graph does not have points on extreme end
imshow(imread('baseresistancemultiplot.jpg')) One option is: axis('padded') That will put space between the elements of th...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to apply low pass filter to forces generated by OpenFOAM?
Filters do not care what data you present to them. They assume that the data are sampled at constant intervals, and that the ch...

etwa 2 Jahre vor | 0

Beantwortet
How to create line connects between two semi circles?
I finally got this to work yesterday — If you’re interested, I’ll post my code .

etwa 2 Jahre vor | 0

Beantwortet
How to solve a highly non-linear ODE containing multiple powers?
It probably depends on what the values are. When I run it, it usually takes off to occasionally at some point, however in oth...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Detect peaks before drop in signal
Withoiut having the data to work with, one option could be the islocalmax function. Use 'FlatSelection','last' since the tops ...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting the bode plot of a high pass filter using matlab
The ‘H’ calculation may be reversed. (I can’t read the axis values on the LTSpice plot image.) Perhaps this — f = logs...

etwa 2 Jahre vor | 0

Beantwortet
How to plot Chroma_Features for an audio file?
I proivided those files for you in my answer to your previous question Unrecognized function or variable 'chromagram_IF'. It ...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
How do I use the buffer function to operate real time on EEG signal files?
I seriously doubt that MATLAB can do real-time signal processing, unless you are also useing the Data Acquisition Toolbox and ap...

etwa 2 Jahre vor | 1

Beantwortet
How do I plot a quiver plot without the tail?
It doesn’t appear to be possible to turn the tails off, since there doesn’t appear to be any specific ‘tail-length’ property, an...

etwa 2 Jahre vor | 0

| akzeptiert

Beantwortet
Curve fitting and parameter estimation with lsqcurvefit
If you look at your data, I do not believe that there is any way to use your ‘SEIR’ model to fit them — T1 = readtable('infec...

etwa 2 Jahre vor | 0

Beantwortet
How to normalize the baseline of multiple Differential Pulse Voltammetry Curves?
Without actually having the data to work with, my first approach would be to use the detrend function on each curve.

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
Scatter graph trend line adjustment and outlier removal
The only option that I can suggest is the rmoutliers function. You will have to experiment with it to get the result you want....

etwa 2 Jahre vor | 0

Beantwortet
How do I plot 14th and 86th percentile?
Use the prctile function to calculate those percentiles.

etwa 2 Jahre vor | 0

Beantwortet
how to rename columns with names like Var2_1, Var2_2...?
Probably the easiest way: data.Properties.VariableNames(2:end) = {'Var2','Var3','Var4'}; Example — data = array2table(rand(...

etwa 2 Jahre vor | 1

| akzeptiert

Mehr laden