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

Answered
How do I create a (10,10) matrix containing numbers from 1 to 100?
Another solution using implicit expansion (which wasn't available back in 2013 when this question was posted): n = 10; A = (1:...

4 years ago | 2

Answered
How to edit matlab toolbox globaloptim
To get information on the progress of the solver change the Display, OutputFcn, and/or PlotFcn options when you call the ga func...

4 years ago | 1

| accepted

Answered
Is there a way to convert times in this format to double, so I can perform mathematical operations on them?
How do you know that 100 represents 1 PM instead of 1 AM? Would it make more sense to adjust x so it includes 1300 instead of 10...

4 years ago | 0

| accepted

Answered
Solllvinf first order dffnt eqn
If you're going to put spaces around the operators separating terms in the matrix you're creating in example, be consistent. y0...

4 years ago | 0

| accepted

Answered
Sprintf problems while trying to format a directory name followed by a string
The backslashes and the characters following them are being treated as escape-character sequences. See the second line in the de...

4 years ago | 2

Answered
Compiled App: previously accessible file is now inaccessible
From the documentation: "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any ...

4 years ago | 0

Answered
How to find the index of the minimum value in a matrix.
Since you're using release R2021b (according to the information listed on the right side of this page) you can use 'all' as the ...

4 years ago | 1

Answered
isequal command suddently stops working
So how different are the two datetime arrays you expected to be equal? Do they just look equal? T = datetime('today') N = date...

4 years ago | 1

Answered
How to call a function with multi variable in real coded GA in function handle and how to define upper and lower bound of that variable in matlab?
If you've defined Torque to accept 3 inputs as per the code at the end of this answer, you can still use that function in your g...

4 years ago | 0

Answered
calculate the minimum probability
Assuming they are the same class and size, you can concatenate them and call min with a dimension input. A = randi([-5, 5], 4) ...

4 years ago | 0

Answered
Write sections of a long string as new lines in a text document
sub = 'XYZYXYZYZYZXYZYXYZ0XYXYXYX'; sub2 = replace(sub, '0', newline)

4 years ago | 1

Answered
bitget function working explanation needed
Here's an unsigned 8-bit integer. x = 0b10011010u8 % x is 10011010 The lowest order bit of x is 0. This makes sense since x is...

4 years ago | 1

| accepted

Answered
How can I create this script??
If you're trying to create examples like the ones in this part of the documentation take a look at the tools described on this d...

4 years ago | 0

| accepted

Answered
How to turn a function handle with 3 inputs (1 variable and 2 parameters) and then assign the inputs parameters and get a function handle with one input? ?
Let's look at the actual time difference between the two approaches. y=1; z=1; f=@(x,y,z)x+y+z; g=@(x)f(x,y,z); h = @(x) x+...

4 years ago | 0

Answered
how can I plot in symbolic math with defined x axis limit and Y axis limit with marker at specific points
syms x T=[1 x x^2 x^3]; l=1; N=[1 0 0 0;0 1 0 0;-3/l^2 -2/l 3/l^2 -1/l;2/l^3 1/l^2 -2/l^3 1/l^2]; g=[1 2 3 4]'; f=T*N*g; ...

4 years ago | 0

| accepted

Answered
How to generate random coordinates and store the values?
The easiest solution is not to use a for loop at all. p = randi([-10 10], 5, 2) If you must use a for loop, preallocate p to b...

4 years ago | 0

| accepted

Answered
Standard keyboard shortcut editor
You can customize the keyboard shortcuts via the Preferences window. You can change individual actions or you can change between...

4 years ago | 1

Load more