Answered
Choose order of input variables for matlabFunction
See the 'Vars' name-value pair argument in the documentation for matlabFunction.

4 years ago | 0

| accepted

Answered
Ηow to solve an equation depends on a system of odes and use the result to the next run?
It sounds like you don't have a system of ordinary differential equations (ODE) but a system of delay differential equations (DD...

4 years ago | 0

| accepted

Answered
Evaluating Nested Anonymous Functions
How do you get the anonymous function to display the coefficients (to four decimal places)? You don't, at least not without stri...

4 years ago | 0

Answered
Passing a constant function handle to another function
What appears in the error message is not what appears in the code you posted. First a comment about the code you posted: simula...

4 years ago | 0

| accepted

Answered
How can I solve this differential delay equation?
Use the functions described in this section of the documentation.

4 years ago | 0

Answered
How can I use a user input to pull a column from a timetable?
Whenever you write T.foo where T is a table, that only works if T has a variable literally named foo (with one exception, Proper...

4 years ago | 1

| accepted

Answered
Install for MATLAB R2020b Update 4 needed
The most recent update available for release R2020b is Update 7. Is there a reason you need specifically the older update releas...

4 years ago | 0

Answered
n dimensional array section
Use a comma-separated list. n = 2; % or 3 or whatever dims = 4*ones(1,n); A = randi([0,9],dims) % Leaving the semicolon off f...

4 years ago | 0

Answered
integral calculation size problem
a = 0.6; % Define pu and pL Make PU and PL functions of x. PU = @(x) 130000*exp(-x./(10*a)); PL = @(x) 150000*exp(-x./(10*a...

4 years ago | 0

Answered
Bulgarian solitaire for creating a pattern
A couple suggestions: % Bulgarian Solitaire % Generate a random integer array whose elements total less than 46 array = randp...

4 years ago | 0

Answered
How to plot symbolic function with string specification?
Store your options as a cell array and turn it into a comma-separated list when you call fplot. syms x f = x; options = {'b',...

4 years ago | 1

| accepted

Answered
How to find out if a logical array is all zeros?
For a vector, all with one input will work. x = ones(10, 1); all(x > 0) % true For a non-vector array you probably want to sp...

4 years ago | 1

Answered
Which SVD algorithm implementation is used in MATLAB?
Keep in mind that the SVD of a matrix is not unique. Quoting from Wikipedia: "Non-degenerate singular values always have unique ...

4 years ago | 1

Answered
MATLAB executable file for predictive modeling
From the documentation: "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any ...

4 years ago | 0

| accepted

Answered
I'm trying to convert date numbers to character dates, I created a vector using datenum and manually entering each date in Y,M,D,H,M,S format, and it works but I hope to find
Instead of using serial date numbers with datenum, use datetime. % Arbitrary data. I entered this manually, but you could build...

4 years ago | 0

Answered
how can he ask the k while saying it in same question I don't understand
You're probably going to have to ask your professor, teacher, or teaching assistant to explain why "k = " is in that question. W...

4 years ago | 0

Answered
Lost in "Handle Land"...
The imshow function creates a scalar image object representing the picture as a whole. That object contains the color data as on...

4 years ago | 0

Answered
Looking for companies/ freelancer developers who can develop the MATLAB software according to our requirements.
Have you considered using the MathWorks consulting department?

4 years ago | 0

Answered
Is there a way to pass in one input to a function and print its name AND value in the command window?
You can use the inputname function. Be sure to handle the case where it returns an empty array.

4 years ago | 1

Answered
how do i get the solution from ODE45?
ode45 is a numeric ODE solver. It cannot give you a symbolic solution. To get a symbolic solution you'd need to use something l...

4 years ago | 0

| accepted

Answered
THE GRAPH FUNCTION DOESN'T CONSIDER WEIGHTS
Are you representing your graph as a graph or digraph object or as a biograph object? How have you stored / represented your we...

4 years ago | 0

Answered
Delete Vector Element but Keep Vector Length
X = [0,1,2,3,4,5,6,7,8,9,10]; Y =[0,2,4,6,8,143,12,14,16,18,20]; [newY, removedOutliers] = rmoutliers(Y); newX = X; newX(rem...

4 years ago | 0

Answered
sprintf, round-off, floating point bug?
Regarding the newer messages in this discussion, see this Answers post.

4 years ago | 0

Answered
MATLAB Compiler Runtime (MCR) Wont Work
My first step would be contacting the author of that program and asking them for help determining why their program is crashing....

4 years ago | 0

Answered
Possibility of decompiling .exe to m files by using eval function?
From the documentation "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any f...

4 years ago | 1

| accepted

Answered
Delete rows from a table using a condition on datetimes
For the sake of humans reading your code I'd be more explicit and give that 1 some units. rng default t = datetime('today') v...

4 years ago | 0

| accepted

Answered
How can I speed up drawnow when combined with 'get' function?
So it sounds like you're trying to do horizontal panning. Is that correct? You can't actually pan the figure shown in this Answe...

4 years ago | 0

Answered
MATLAB won't launch (though installed and activated) on Mac Monterey
Please contact Technical Support and work with the Support staff to determine why MATLAB is not able to start on your machine.

4 years ago | 0

Answered
I need to create a script that demonstrates the use of this function
You've asked effectively this same question several times before just with different functions. Generalize the advice you recei...

4 years ago | 0

Answered
How can I use equations from a matrix, using symbolic variables, inside the function file for ode45 ?
It is possible to perform calculations using symbolic variables inside the function file whose handle you pass into ode45 as the...

4 years ago | 0

Load more