回答済み
fft of sin(pi*x/5)./(pi*x) returns NaN
When ‘x’ is 0, ‘G’ becomes 0/0, and the IEEE standard defines that as NaN. Any NaN in a vector will propagate through all calcu...

6日 前 | 1

| 採用済み

回答済み
Certain functions not available.
The ischange function was introduced in R2017b. Your best option would likely be to upgrade to a more recent release. Workar...

6日 前 | 0

| 採用済み

回答済み
standard separation of x axis tick marks
Plot them using semilogx: % Output Variable Section: subplot(1,2,1) semilogx(omega,decibels),xlabel('Omega (rad/s)'),ylabel(...

6日 前 | 0

| 採用済み

回答済み
How to amplify the signal?
Multiply the vector or matrix by a constant greater than 1, and use the sound (not soundsc) function to listen to it.

6日 前 | 0

回答済み
Editor window not opening in Matlab
There is a small white down-pointing arrow in a white circle in the upper right corner of the Editor toolstrip. Among the optio...

7日 前 | 1

回答済み
Don't understand sequences or how to process them in a function.
You are overshadowing the function flip. It’s best not to do that. Name your function something else, such as ‘myflip’ or so...

7日 前 | 0

回答済み
Plotting the orientation of lines
Try this: A = [99.1862290400000 102.281400300000 97.1587243900000 97.3460346000000 104.227574300000 8...

7日 前 | 0

| 採用済み

回答済み
I want to save all the values of e1 and e2 and then I want to plot them
There are several ways to approach this. This causes the least disruption to the code you posted: n = 0.22; r = 0.9; av =...

7日 前 | 0

| 採用済み

回答済み
How to convert .csv file into audio file
Using numbered variables is never a good idea. Do this instead: T=readtable('2khz.csv'); A = table2array(T(:,3:8)); Then,...

7日 前 | 0

| 採用済み

回答済み
Probelm with 'writecell'
Try this: m = readcell('rawdata.csv'); writecell(m(2:end,:), 'modified_data.csv'); If that does not work, upload (attach) ‘r...

8日 前 | 0

回答済み
Plotting a bivariate function and a tangent line on the same graph
To plot them simultaneously, you need to use the hold function. See if this does what you want: f = @(x,y) x.^2 + 3*(x.^2)....

8日 前 | 0

| 採用済み

回答済み
Apply Chebyshev filter to sea surface temperature (SST) data
‘I do not understand what should be the inputs for my problem.’ There are several different filter types. The Chebyshev desi...

8日 前 | 0

回答済み
Convert Differential Equations to Spate Space
In order to convert your equations to a state-space representation, you need to linearise them. This involves taking the Jacobi...

8日 前 | 0

| 採用済み

回答済み
Can 'cascade' be used on bandstop filters created with 'designfilt'?
If you want to design a filter with multiple stopbands, it is likely easier to do this with a FIR filter. For example: Fs =...

8日 前 | 0

| 採用済み

回答済み
Graphisdag was not found
First, run these: restoredefaultpath rehash toolboxcache then see if that corrects the problem. If the problem persists ...

8日 前 | 0

| 採用済み

回答済み
How can i make envelope cover first half peak at origin?
The envelope function apparently does not recognise the centre peak as a peak, since it is at one end of the sequence. You ca...

8日 前 | 1

| 採用済み

回答済み
I am having this error. Could you help?
It is likely better to use the fullfile function than to cd to the path. I would define ‘keyfile’ as: keyfile = fullfile(pa...

8日 前 | 0

回答済み
how to calculate the area under a curve?
‘I would also like to calculate portions of that area.’ Use cumtrapz, and then subtract the values of the limits: x=[0:100]...

8日 前 | 1

回答済み
How does one plot only the maximum y value for an x value with multiple y values?
The accumarray function is perfect for this: D = load('y4-T4.mat'); T4 = D.T4; ...

8日 前 | 0

| 採用済み

回答済み
Excel Columns to Matlab Array
I would use the readtable function if your have R2013b or later. You can probably then convert it into a timetable array (R20...

9日 前 | 0

回答済み
How to reconstruct a tidal elevation time series from tidal constituents?
I am not certain what you want. Try this: t = linspace(1, 24, 96); % Time Vector Amp = rand...

9日 前 | 0

| 採用済み

回答済み
Need help filtering csv by values inside column
Try this: A = [2 23 2 39 2 40 5 12 5 9 9 29 9 85]; [UA1,~,Ix] = un...

9日 前 | 2

| 採用済み

回答済み
Graph not large enough to contain thick line
Rather than plotting a thick line, use a patch object instead for the standard deviations: x = 0:99; ...

9日 前 | 0

| 採用済み

回答済み
Fit theoretical x-y data set to experimental data set
I have no idea what your actual function is, or what you are doing. I would do something like this: function fd = myFunc(x)...

9日 前 | 1

回答済み
How to change colour of binary vector
We don’t have your data so can’t run your code. Try this: x = 0:19; y = sin(2*pi*x/19); a = randi(5, 20, 1); b = randi(5...

9日 前 | 0

| 採用済み

回答済み
Unable to convert expression into double array.
One way is to integrate it numerically rather than symbolically: syms w fun1pdf(w) = exp(w)/((1+exp(w))^2); fun1mu(w) = w^3...

10日 前 | 0

回答済み
How to take all output from while loop?
I cannot run your code without your files. However see if this solves the problem with your while loop: k = 1; whi...

10日 前 | 0

| 採用済み

回答済み
Datetime conversion in numeric form (matrix)
If you want to convert them into date numbers, use the datenum function: timeNr = datenum(time); If you want to convert them ...

10日 前 | 0

| 採用済み

回答済み
how to calculate the summation of a function having two variables.
The summation is across ‘f(x,y)’, not only ‘y’, so the function must work for all values of the arguments. The only way to do t...

10日 前 | 0

回答済み
Plotting FFT Spectrum using Square Wave
Two problems: First: ‘fs’ is the inverse of the sampling interval, or 1E+6. Second, your code is correct although your plot...

11日 前 | 0

| 採用済み

Load more