回答済み
Legend function does not work in R2019b
It was pointed out recently in another Question with a problem similar to yours that: opengl software is likely the appropria...

5日 前 | 1

| 採用済み

回答済み
how to plot percentage?
Use the 'Normalization','probability' name-value pair argument in your histogram call.

5日 前 | 0

| 採用済み

回答済み
Finding frequency and duration of an audio signal
You specified it to be 1 kHz, and 1 second duration, so it is just that: fs=24000.0; % Sampling rate t=0:1/fs:1; % One sampl...

5日 前 | 1

| 採用済み

回答済み
Solving system of equations for different combinations of symbolic variables
I am not certain what result you want. Try this: syms x y A = sym('x',[3,1]); C = sym('y',[3,1]); A(1) = 3; A(3) = 4; ...

5日 前 | 0

回答済み
Shade Area Between 2 Tabulated Plots.
This is as close as I can get: Y_Values = readtable(UserDir,'Sheet',SheetNameA,'Range','A2:A150','ReadVariableNames',0); X_Va...

5日 前 | 1

| 採用済み

回答済み
Find delta 99 of the boundary layer
See if the findchangepts or ischange functions will do what you want. You may need to invert them (plot y vs Ux) for them to wo...

5日 前 | 1

| 採用済み

回答済み
Solving an nonlinear equation
See if the Optimization Toolbox fsolve function can do what you want.

6日 前 | 0

回答済み
textscan not reading all rows.
Without having your text file, it is not possible to provide specific code to read it. However, it is possilbe that that there ...

6日 前 | 0

回答済み
Speech processing. voice signal
See if the buffer function will do what you want.

6日 前 | 0

回答済み
Can not run function, written wrong?
The order is reversed. The ‘x’ variable needs to be assigned before calculating ‘y’, since ‘y’ depends on ‘x’.

6日 前 | 0

| 採用済み

回答済み
Parameter fit differential equation to dataset
I have discussed this several times over the years. See for example Monod kinetics and curve fitting and Parameter Estimation f...

7日 前 | 0

| 採用済み

回答済み
How can I rearrange a table with different types of data?
See if the unstack function will do what you want.

7日 前 | 2

回答済み
I need help to modify my optimization code
Note that in the ‘% Parameters’ section, you are creating new random numbers in every call to ‘objective_function’. The optim...

7日 前 | 0

| 採用済み

回答済み
How to convert XLim day data to monthly?
Since you’re using datetime arrays, using the xtickformat function and specifically using 'MM' or 'MMM' as described in the date...

7日 前 | 1

回答済み
how do i spread ticks evenly on a plot?
That is plotted as a loglog plot. Either just use plot, or: set(gca, 'XScale','linear', 'YScale','linear') For that partic...

7日 前 | 0

回答済み
Damped harmonic motion curve fit
Try this: D = load('Stashu Kozlowski DHM.mat'); % File Attached x = D.x; y = D.y; ...

8日 前 | 1

| 採用済み

回答済み
How to show nearest value of a separate function with known x and y inputs
It seems to me that you are attempting to invert your data, that is calculating an ‘x’ value from a ‘y’ value. The easiest way ...

8日 前 | 0

回答済み
I am trying to write formulas involving specific values from the table by quoting specific row and column names
You appear to have imported the file correctly with readtable. All readtable is telling you in the Warning is that it had to cr...

8日 前 | 0

回答済み
How to change the ylim for all histogram figures after a for loop?
I can’t run your code (no data), so I simulated it. This seems to work: for k = 1:12 figure(k) H = histogram(rand...

8日 前 | 0

| 採用済み

回答済み
Finding average step size and slope with ode45
Subscript ‘dT’ as well. The code will be more efficient if you move the plot outside the loop: t = [0, 5]; % time span y0...

8日 前 | 0

| 採用済み

回答済み
How to save ode45 outputs in a loop?
The easiest way would be to save them as cella rrays, then sort those out later: for j = 1:7 [T{j},Y{j}] = ode45(dydt, t,...

8日 前 | 0

| 採用済み

回答済み
Genetic Algorithm chart convergency
It does converge to the best fitness value. The ga algorithm will keep searching for the best fitness value until it reaches wh...

8日 前 | 0

| 採用済み

回答済み
Laplace of Constant a
You must tell the laplace function what the independent variable and transformation variable are. It has no way of knowing, oth...

8日 前 | 1

| 採用済み

回答済み
How can I design flat magnitude response IIR filter ?
I am not certain what you want the filter to do. One option is to design a lowpass filter with a cutoff near the Nyquist freque...

8日 前 | 0

回答済み
Missing plot line and legend mismatch
Note that ‘By’ is a scalar, so it actually will not appear on the plot (unless you plot it with a marker). They will all plot a...

8日 前 | 0

回答済み
Using rows of matrix as elements in a new matrix.
Try this: M = [1:12; rand(1,12)]; % Original Matrix n = 50; xnew = linspace(min(...

9日 前 | 0

回答済み
Polyfit not showing a curve
You aren’t finished evaluating the fit. You need to use polyval to evaluate it. Try this: % store coordinates x = [5.2 5....

9日 前 | 0

| 採用済み

回答済み
discrete low pass in an array
You willl first need to use the resample function to create uniform sampling intervals for your data. Then there are any number...

9日 前 | 1

回答済み
Interp1 returns NaN for a value
You could have NaN values in your data. If so, first use the fillmissing function (R2016b and later reseases), then interp1.

9日 前 | 0

回答済み
Fourier Series Expansion Graph Help
If you want to plot them beginning at 0, remember to tell fplot: figure fplot(s,[0 L]) hold on fplot(f,[0 L]) That will s...

9日 前 | 0

| 採用済み

Load more