Answered
How do i solve huge coupled first order differential equations
The integration times are adaptive, however it is possible control the points at which the differential equation system is evalu...

5 years ago | 0

| accepted

Answered
function never used, I dont know why.
In a script, all the function definitions must go at the end of the script: %----------StartChua.m---------- [t,y] = ode45(@c...

5 years ago | 1

| accepted

Answered
Plot trajectory of a point on a moving platform
This should get you started — N = 100; figure for k = 1:N x = cos(2*pi*k*2/N); y = sin(2*pi*k*4/N); plot(x, y...

5 years ago | 0

Answered
Unable to perform assignment due to the different length of sides
A cell array could be appropriate here: Str{i} = fileread(full_file_name(i,:)); .

5 years ago | 1

| accepted

Answered
sort cell arrays based on mean value
Try something like this — c = mat2cell(rand(150,1), [10 20 30 40 50], 1) % Create Cell ARray [cm,idx] = sort(cellfun(@me...

5 years ago | 1

| accepted

Answered
change color of xticklabels or yticklabels
One approach — x = 0:0.1:10; y = exp(-(x-5).^2); figure plot(x, y) hold on plot(xlim, [0 0]+min(ylim), 'g') hold off ...

5 years ago | 0

| accepted

Answered
Error using streamline function in matlab
The ‘startx’ vector is incorrect. Try this — LD = load('mukesh bisht matlab.mat'); U = LD.U; W = LD.W; X = LD.X; Z = LD...

5 years ago | 0

Answered
modeling with 2 independent variables
If you know what the times are, create a time vector of them using the repmat function (or repelem function, introduced in R2015...

5 years ago | 0

| accepted

Answered
how to plot x axis with ratio unit instead of proportional unit
I am not certain that I understand the problem. However when you mention ‘squeezed to the left’, that could be correctged by us...

5 years ago | 0

| accepted

Answered
Can I find milliseconds from decimal time
Perhaps: HOD.Format='hh:mm:ss.SSS' will do what you want. See the Format property for details. .

5 years ago | 1

| accepted

Answered
Using the Lowpass filter to properly filter data without a time variable
It is always best to use the freqz function to see what the filter is actually doing. (I find fvtool a bit difficult to work wi...

5 years ago | 1

| accepted

Answered
multiple histogram color scheme
Since all the edges appear to be the same, it might be easiest to get the outputs of the histogram calls, however instead using ...

5 years ago | 0

| accepted

Answered
how do I detect onset in PPG data?
Without knowing the details, there are several functions and approaches that can be used to detect the onset of each pulse (assu...

5 years ago | 2

| accepted

Answered
How to change the colour of the markers on a scattered graph?
Try this — LD = load('aw_w14_scans.mat'); BMC_14_whole = LD.BMC_14_whole; BMC_14_whole_sum = sum(BMC_14_whole,2); boxplot...

5 years ago | 0

| accepted

Answered
How can i optimize the code and connect the functions?
The syms call is not necessary. Try something like this instead: % syms x f= @(x) (eta_l.*eta_0.*(((-sigma_f.*v_f.*l_c)./2...

5 years ago | 0

| accepted

Answered
lsqcurvefit error: requires all values returned by functions to be of data type double
The ‘F’ function does not appear to represent the data correctly. I revised it slightly. This should get you started: Data...

5 years ago | 0

| accepted

Answered
Matlab isn't ploting the function
I do not have any of the data, however I believe that I understand the problem: for x=logspace(-6,2) y = x.^2; end fi...

5 years ago | 0

| accepted

Answered
How can I change the color of the median line in boxchart?
It is not possible to change the colours, however it is possible to over-plot the median lines — x = randn(5); ...

5 years ago | 2

| accepted

Answered
the weight of the weighted fitting
See the Wikipedia article on Weighted least squares for an extended explanation. Essentially, the weighting is applies to the...

5 years ago | 0

| accepted

Answered
defining string variable in fprintf function
Try this — fid = 1; % Write To Command Window result_1=10.5; result_2=9.9; ...

5 years ago | 1

| accepted

Answered
finding a solver in matlab to solve an equation
I am not surprised that the numerical solvers are having problems with it! syms x Eqn = 2^((2*10^6)/x)-((1.5536*10^(-51)*x)...

5 years ago | 0

Answered
If statement for cells
The && are ‘short circuit’ AND operators. The second expression (after the &&) will not be evaluated if the first expression is...

5 years ago | 2

| accepted

Answered
Error using plot vectors must be the same length
It’s not easy to determine what the problem is. One possibility is to use the gradient function instead of using diff to calc...

5 years ago | 1

Answered
Filter out misalignment of sensor signal
I have no idea what ‘perfectly aligned axis’ means. If you want to remove the baseline trend, the best option for this signal...

5 years ago | 1

| accepted

Answered
How do I interpolate the remaining part of my signal?
If you have R2016b or later, see if the fillmissing function will do what you want. .

5 years ago | 1

| accepted

Answered
Animate 2D coordinate plot
Try this — D1 = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/678468/Clcoords.xls'); figure h...

5 years ago | 0

| accepted

Answered
How to removed dashed lines in fplot
The dashed lines indicate singularities, and I find them helpful. They can’t be removed, however it is possible to get the XD...

5 years ago | 1

| accepted

Answered
Specify value on a contour with a value that is not in the matrix, it is possible ?
Yes. Use the levels argument. M = (-1:0.11:1).'*(-1:0.9:1); figure contour(M, 'ShowText','on') hold on contour(M, [0...

5 years ago | 0

| accepted

Answered
How to find tangent line on the straight part of a graph?
This is likely straightforward. See for example: How to draw tangent line at infleciton point? and How to draw a tangent l...

5 years ago | 0

Answered
pspectrum power spectrum or power density scaling
Look carefully at the units, specifically for periodogram pxx, and for pwelch pxx. Compare these with pspectrum p. I prefer...

5 years ago | 0

Load more