Answered
Error in fminunc function line 477
Let's check that you haven't written or downloaded a file that's conflicting with a function provided by MATLAB. What do the fol...

3 years ago | 0

Answered
r2023a offline update wont find install root folder
Try wrapping the directory name in double quotes. j:\r2023a update package\bin\win64\mathworksupdateinstaller.exe --destination...

3 years ago | 0

| accepted

Answered
Compiled matlab function does not recognize 'predict' function from the statistics and machine learning toolbox
How are you creating or obtaining the first input you pass to predict? My suspicion is that you're loading an object from a MAT-...

3 years ago | 0

Answered
builded function converts from polar to rectangular
If this is not a homework assignment use the pol2cart function. If this is a homework assignment show us the code you've writte...

3 years ago | 0

Answered
Set a variable equal to the string of the corresponding season.
BD = (1:12).'; whichMonth = discretize(BD, ... [1 3 6 9 12 12], ... 'categorical', ... ["Winter", "Spring", "Sum...

3 years ago | 1

Answered
'invaudfilt' function to be found?
I find no function by that name in any MathWorks product. Nor does Google find any hits for "MATLAB invaudfilt" after I tell it ...

3 years ago | 0

Answered
Displaying fit function on the plot
We can use some of the methods of the object returned by fit to get the pieces we need to display it. x = (1:10).'; y = x.^2 +...

3 years ago | 1

Answered
Unable to run a simple 'fsolve' example.
My guess is that you accidentally added the toolbox/optim/eml directory under matlabroot to the MATLAB search path. If it is on ...

3 years ago | 0

| accepted

Answered
R2014a Error Box Too many input arguments Always Appearing - Buggy.
You likely have a different fliplr.m on the MATLAB search path that's preventing MATLAB from calling the version included in MAT...

3 years ago | 0

Answered
Can anyone duplicate my matlab crash?
I'm not certain but it sounds like this may be Bug Report 1076354. One test you could do would be to transpose your array and ta...

3 years ago | 1

| accepted

Answered
ctrl+d does not work for methods
The problem is simple to state but quite a bit more complicated than you might expect. If you were to highlight the method name ...

3 years ago | 1

Answered
Error calculating mean when variable inputs are decimals between 0 and 1
The first input to the mean function is the data whose mean you want to compute. The second input, if it is numeric, is the dime...

3 years ago | 1

| accepted

Answered
How to solve the error while solving the given equation by ode45 or ode15s?
There are several problems with this code. clear all; clc; These two lines are unnecessary. Often people put them in because ...

3 years ago | 0

Answered
x=max(M,[ ],2). Iam not understanding this part of the code.
See the section of the documentation page for the max function that describes the dim input argument. The two pictures there sho...

3 years ago | 0

| accepted

Answered
Removing characters from a datetime format to make it recognizable to MATLAB
You can include literal characters in the InputFormat argument of a call to datetime. See the "Date and Time from Text with Lite...

3 years ago | 1

Answered
How to evenly space the y-axis from 1 to 10^-3?
Do you want a logarithmic Y axis? If so use semilogy or loglog (if you want both axes in log scale) instead of plot. Alternately...

3 years ago | 1

Answered
How to fix equation code error
nu = 1.5e-5; ya = 9.7; k = 0.41; y = 2.3025e-03; uT = (k.*rho.*nu).*((y.*ustar/nu) - ya.*tanh(y.*ustar/nu.*ya)) Nowhere ...

3 years ago | 0

Answered
Creating the MATLAB Logo - Updated
How does what you want differ from the figure created by the logo function? logo

3 years ago | 0

Answered
Why in trial version R2023a, ''pigxs'' commands do not pop-up window?
Like @Cris LaPierre I don't see any function named pgixs. I don't see a function named pigxs (as per your comment after the pict...

3 years ago | 0

Answered
extrapolating the data out of the given range
Let's look at your data. You had a typo in the last element of mulasecc_result so I replaced the period with a comma. num_injec...

3 years ago | 0

Answered
I want to convert from milliseconds to a date using excell 1904 format
baseDate = datetime(0, 'ConvertFrom', 'excel1904') d = baseDate + milliseconds(1e6) or d2 = datetime(1e6, 'ConvertFrom', 'epo...

3 years ago | 0

Answered
Having trouble finding a row in a table
You need to extract the contents of the table variable if you want to use == on it in the release you're using. load patients ...

3 years ago | 0

Answered
Run a function with both input and variable
pmin = 0; pmax = pi/2; al = [-0.1211 -0.2005 0.1527 0.7276 0.5885 0.2645 0.6400]; fun = @(p)2.*al.*p.*sin(p).*cos(p); % the f...

3 years ago | 1

Answered
Expanding compiled app functionality by external p-files
From the documentation: "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any ...

3 years ago | 0

Answered
Plotting x-axis time in dd hh mm ss format
Based on the clarifications you posted on the answer by @Bora Eryilmaz I think you want to plot a duration array rather than a d...

3 years ago | 1

Answered
Problem with a Loop
Instead of reading the data into a matrix, creating individual variables, and then storing those variables in a struct array I'd...

3 years ago | 0

Answered
Construct a histogram manually and calculate the average of data contained in each bin
Use discretize to identify which data points fall into each bin then groupsummary to take the mean of the data in each bin?

3 years ago | 0

Answered
number of significant digits for the coefficients in curve fitter (polynomial, with two degree)
Don't confuse what's displayed by the fit object and what's stored in the fit object. Perform the fitting, export the fit to the...

3 years ago | 2

Answered
Parallel Matlab on EC2 or other supercomputer?
The "Resources for Using MATLAB and Simulink in the Cloud" page links to instructions about how to run MATLAB on a virtual machi...

3 years ago | 0

Answered
Is there a function like movsum which simply gets the values in a given sliding window rather than summing them?
Let's use some starting data that's a little more varied than 1:10. x = [1 2 3 4 5 6 7 8 9 10].^2 Define the window length. w...

3 years ago | 0

| accepted

Load more