Answered
locating a cell from two inputs
I see that you found the file and were able to open it! Try something like this: dailytotal = array2table(rand(5,3), 'Varia...

6 years ago | 0

| accepted

Answered
Removing noise from a .wav file
What do you want to filter out? Determine that first, and include it as part of your Question. There are several problems ...

6 years ago | 0

Answered
How to convert 1x1 sym into numeric value in the workspace?
A ‘1 x 1 sym’ is a single scalar symbolic expression, while: Q = sym('Q', [2 3]) creates a ‘2 x 3’ symbolic expression. ...

6 years ago | 2

| accepted

Answered
Not enough input arguments error. where am I going wrong here?
The fplot call is wrong, however using ‘bbfun’ with ‘X1’ and ‘X2’ is not going to work because those vectors are different sizes...

6 years ago | 0

Answered
How do I show which variable is being plotted while using hold?
The legend function is the most obvious way to designate them. The text function is also an option. It depends on the result y...

6 years ago | 0

| accepted

Answered
Error ODE45 "Array indices must be positive integers or logical values."
I ran your code in a function I use for such purposes, and it ran for me without error, producing an appropriate plot. functi...

6 years ago | 1

| accepted

Answered
Symbolic maths to file with full precision constants
Specify the number of digits you want: vpa(pi, 100) produces: ans = 3.1415926535897932384626433832795028841971693993751058...

6 years ago | 0

Answered
ask help to do the fft on my 'untreatable' data
Try this: D = load('data.txt'); t = D(:,1); s = D(:,2); L = numel(t); Ts = mean(diff(t)); Fs = 1/Ts; Fn = Fs/2; FTs =...

6 years ago | 0

| accepted

Answered
Multiple variables in non linear regression
Try this: x1 = rand(1,10); % Independent Variable Vector x2 = rand(1,10); ...

6 years ago | 1

Answered
How to filter data in a variable based on its value
This will set the elements that are less than or equal to 500 to 0: A = A.*(A>500); It preserves the structure of ‘A’.

6 years ago | 0

| accepted

Answered
Porque al correr mi código aparece Matrix dimensions must agree, y no me grafica
Use ./ : z = sin (sqrt (x. ^ 2 + y. ^ 2) ./ sqrt (x. ^ 2 + y. ^ 2 + 0.2)); ↑ ← Z = sin (sqr...

6 years ago | 0

Answered
Unable to open file
My guess is that you left out a ‘t’. Try this: datatab = readtable('/Users/laurenhough/laurenhough/Desktop/CSV/dailytotal.c...

6 years ago | 0

Answered
Fastest way to read mixed-type and position-delimited text files
If you have R2016b or later, see if the FixedWidthImportOptions function will do what you want. (I have no experience with it, ...

6 years ago | 0

| accepted

Answered
integral function gives error
do not see the function that is being integrated anywhere in your Question. However the error message tells you exactly what to...

6 years ago | 0

Answered
How to know the abscissa of these y values?
You have a series of 16-element frames, each with columns 6 and 7 being a series of pulses. Filtering them is likely not appr...

6 years ago | 0

Answered
Why doesnt the code show the ploted lines from the answers?
You set them all to 0 before you plot them: %Create plot legend tx=t(:); %Convert row vector to column vector Lxx=num2str(...

6 years ago | 0

| accepted

Answered
Forcing matlab to simplify symbolic expression
Use the vpa function: lmax = vpa(solve(eqn, l)) produces: lmax = 0.0029011110628620153129357555503486/T It is not possibl...

6 years ago | 2

| accepted

Answered
What happened to firfs?
I suspect the problem is with the negative values in ‘w’, since the frequencies (‘w’ here according to the argument order in you...

6 years ago | 0

Answered
how to plot triangular waveform?
See the documentation for the pulstran function.

6 years ago | 0

Answered
Combine 2 Cell Matrices into One
Try this: A = {'A','B','C';'A','B','C'}; B = {'1','1','1';'2','2','2'}; C = cellfun(@(x,y)[x,y], A, B, 'Uni',0) producing...

6 years ago | 0

| accepted

Answered
How can I create a sub-matrix from a matrix with repeated values in a column?
Use the accumarray function: [Au,~,ic] = unique(A(:,1)); Outc = accumarray(ic, (1:size(A,1))', [], @(x){A(x,:)}); producing:...

6 years ago | 1

| accepted

Answered
How to do FFT on a signal found in two arrays
See my Answer to your closely-related Question: Y axis of FFT plot If you have further Questions, please provide enough detail...

6 years ago | 1

Answered
Having problem with Rankine Oval Matlab
The contour function can give you the values for ‘psi’ equal to zero: cxy = contour(x,y,psi,[0 0]); That will plot them, and ...

6 years ago | 0

| accepted

Answered
Y axis of FFT plot
‘Now although my data range only from -190 to 185, i see the amplitude axis range from zero to almost 3X10^4. What does that ac...

6 years ago | 1

Answered
using ss2tf command
I am not certain what you want. One option is the bode function, the other is lsim. These will work with state space systems...

6 years ago | 0

Answered
How can I reformat the axes of a graph?
To plot the x-axis in powers of 10, use the semilogx function. (There are other options as well to produce teh same effect. Th...

6 years ago | 0

Answered
How to calculate FWHM and rise time?
The Signal Processing Toolbox has everything you need to analyse your signals. After reading and reshaping your file so it is...

6 years ago | 0

| accepted

Answered
I have a problems to graph in 3D
‘vectors must be the same length’ Yes, they must. If you remember to use element-wise division: z=sin(sqrt(x.^2+y.^2))./...

6 years ago | 1

Answered
Preallocating table makes it slower?
I would preallocate the array, then do the array2table call at the end, after the array was created and is stable (nothing more ...

6 years ago | 0

| accepted

Answered
How can I gather all the values from a loop into an array?
Knowing only what you posted, I would do something like this: i=x0:h1:xx-h1; % Where h1 is the step s...

6 years ago | 0

| accepted

Load more