Answered
Ode system solution with unknown constant
You have already seen and posted a Comment to Parameter Estimation for a System of Differential Equations and that (or similar t...

6 years ago | 0

| accepted

Answered
Error using interp1
Veerle Kohlen — You likely need to put your data into a timetable array, then use the retime function. That would likely be t...

6 years ago | 0

| accepted

Answered
How do I index an entire row given a randomised value?
Probably: ExtractedRow = ElMat(n,:); assuming I understand what you want to do.

6 years ago | 0

Answered
How to make a 10mm impulse input
The Dirac function is defined as having unit area, infinite amplitude, and infinitesimal width. None of those can be changed. ...

6 years ago | 0

Answered
Plot a function when I have only the function.
Choose whatever range for ‘x’ that you want: x = linspace(-5,35); y = ((pi())*(((20*x.^(3/2))/(3/2))-(x.^(5/2)/(5/2))))/(0.00...

6 years ago | 0

Answered
Explanation of two-tone frequencies that is combined into one graph
Referring from your Comment in another thread, I am not exactly certain how to approach this, or what sort of solution you want....

6 years ago | 0

| accepted

Answered
How to convert time column from hours to decimal days to HH:MM:SS
Try this for the 2014 file (do essentially the same for any others), noting that with this format for ‘filename’, the code will ...

6 years ago | 0

| accepted

Answered
Define a set of independent variables for fitlm
Possibly: X = T{:,2:end}; then: mdl = fitlm(X,T.visitors) If ‘T’ has only numeric variables, that should work. .

6 years ago | 0

| accepted

Answered
Contrast problem using surf plot in subplot
Set 'EdgeColor' to 'none', or shading to 'interp'.

6 years ago | 0

Answered
what is the purpose of u1 and u2 in this code?
They create (1x701) vectors with different numbers of zeros and ones. The overall effect (that is easily seen if plotted) is ...

6 years ago | 0

| accepted

Answered
time series for nutrient data
Try this: T1 = readtable('emily bristow D352_CTD_NUTRIENTS.xlsx', 'VariableNamingRule','preserve'); T2 = T1(:,16); DayLabe...

6 years ago | 0

| accepted

Answered
Multiple functions in stats toolbox not working, despite active license?
Run these commands from you Caommand Window or a script: restoredefaultpath rehash toolboxcache If you are still having pr...

6 years ago | 0

Answered
How to read an unformatted fortran 90 output bin file in matlab?
If you know something about the internal representation, use the fread function to read it. Also see the documentation sectio...

6 years ago | 0

Answered
Supposed to get 6 separate graphs, instead getting 3
I don’t understand what ‘don’t work’ means. They all show up and appear to be appropriate when I run your posted code, both a...

6 years ago | 0

Answered
How to simplify differentiation
Use the vpa function: syms x Eqn = (4722366482869645*x)/4722366482869645213696 + 1/25000; Eqn = vpa(Eqn, 6) producing: E...

6 years ago | 0

| accepted

Answered
Recommendations for hardware acceleration for AI work
The Webinar on Artificial Intelligence with MATLAB has already come and gone, however contacting Brad could be of some benefit i...

6 years ago | 0

Answered
Vector error when using plot function
This: plot((V1:0:Vmax),nmax) creates an empty vector for the independent variable vector, since there is an increment (or ste...

6 years ago | 0

Answered
Array Indexing with For Loop
I’m not certain what you want to do. See if this works in your application: X = randn(103, 15); ...

6 years ago | 1

| accepted

Answered
Manipulating Values in an Array with Logical Indexing
The logical indexing approach should work as you described as wanting it to. Try this example: A = rand(5); B = A < 0.5 C...

6 years ago | 0

| accepted

Answered
why wont text scan read all rows?
The first column causes problems because it includes ‘NA’ in a field that uses '%d'. The fix for that is to reasd it as a str...

6 years ago | 0

Answered
How to apply three notch filters of 3rd order?
Using IIR filters to do that requires connecting all three in series, and a low-order Butterworth design is likely not going to ...

6 years ago | 0

| accepted

Answered
System of linear equations
‘I want to understand how to use matlab to re-arrange terms the equations and substitue them in each other so at the end i get T...

6 years ago | 0

Answered
please help me with this break
You have two nested loops. The break command will only break out of the inner loop, the one it is called in. A simple exampl...

6 years ago | 0

| accepted

Answered
high grade butterworth bandpass filter
Assign outputs: [z,p,k] = butter(10,[10 35]/1000); %10th-order butterworth bandpass filter then use zp2sos and use second-o...

6 years ago | 0

Answered
How to solve this equation in Matlab
Put everything on the right-hand side, so: f = @(d) expression - 30.19/d^2; then use fzero or fsolve or the Symbolic Math Too...

6 years ago | 1

| accepted

Answered
Why do I keep getting complex values from an if/else statement?
The problem is in the if block logic and the way MATLAB evaluates vectors. if r < 0.5 implies: if all(r < 0.5) that of co...

6 years ago | 1

| accepted

Answered
gone gone gone deleted
Try this instead: x = fmincon(@(x)fun(x,rM3, R3, rM4, R4),x0,A,b) I cannot run your code since I don’t have the file. I assu...

6 years ago | 0

Answered
Performance issues with readtable vs. xlsread
If you need to use xlsread, use it as long as you have it available. Since you obviously want the header information as well,...

6 years ago | 0

| accepted

Answered
To smooth the noisy signal with integral
I believe you have the correct approach. I would do something like this: f = 1/20; t=0:0.2:50; noise = randn(size(t));...

6 years ago | 0

Load more