Answered
Match function in matlab
Call the min function with two outputs. Use the second output to retrieve the corresponding value.

6 years ago | 0

Answered
How to automatically update MATLAB GUI axes handles?
Callback functions don't have outputs, at least not how they are called by the usual workflow of a UI in MATLAB. I'd probably w...

6 years ago | 0

| accepted

Answered
Why did my LOAD stop working?
Did you create, download, etc. a function or class named network that is taking precedence over the definition of the network cl...

6 years ago | 0

Answered
Replacement of Nan to 2.74
You could use the fillmissing function to fill the location of your missing data (NaN for double and single precision variables)...

6 years ago | 0

Answered
Implementing Gauss Elimination by pivoting with Matlab
That's not MATLAB code. I'm not quite sure what language it is, but it's not MATLAB. If you're new to MATLAB, I recommend going...

6 years ago | 1

| accepted

Answered
I'm trying to understand your tables command bugs
What specifically does "doesn't work" mean? If you receive errors when you try running those commands, please show the full and ...

6 years ago | 0

| accepted

Answered
HIDE COMMENTS IN PROGRAMS
That functionality is called code folding. Only certain types of constructs can be folded. Most of the constructs that can be fo...

6 years ago | 1

Answered
Hello i didnt get the serial number
If you are using your school's or company's license, my first step would be to contact your school or company's IT department an...

6 years ago | 0

Answered
Help with event function in ode15s
function [val, isterminal, dir] = MyEvent(~, Y) val = (Y>=1); isterminal = 1; dir = 0; end Your event function's val...

6 years ago | 0

Answered
short format for the normalized histogram
One way to do this is to use the ruler object representing the Y axis and change the TickLabelFormat for that axis. Using a slig...

6 years ago | 0

Answered
Help in Developing Graph.
The cumsum and stairs functions should do what you want to arrange your data and create the plot. xlabel and ylabel will label t...

6 years ago | 0

Answered
Import Data and plot it with an extra variable as vector
Since you reference the "Import Data" 'function' I assume you're using the Import Tool opened by clicking the button labeled "Im...

6 years ago | 0

Answered
i have different result
for T=[100;1000;10000]; % Original code When you call for with a vector as its loop variable definition, it iterates over the c...

6 years ago | 0

Answered
Assign values to numbers and recount after a fixed interval
If your Date variable is a datetime array, call day on it asking for the 'dayofyear'.

6 years ago | 0

Answered
how to solve the probelm that an input variable will be cleared in a loop in the definition of a matlab function?
In general, you shouldn't need to call clear in a function. In those situations where you must, strongly prefer calling clearvar...

6 years ago | 0

| accepted

Answered
finding all indices of a value in matrix
Do you need the locations or do you simply need to refer to the locations where the specified value occurs? Those are two slight...

6 years ago | 0

Answered
'Force' algorithm in plot MST
See this documentation page for more information.

6 years ago | 0

Answered
Should "format compact" stick between sessions?
Change the "Text display" entries in the Command Window preferences to make the changes persistent across sessions.

6 years ago | 0

| accepted

Answered
Non-integer values inside "Randi" function
If you want uniformly distributed random numbers that are not integers, randi is not the right tool for the job. See the example...

6 years ago | 1

Answered
Is it possible to write argmin in the equation for MATLAB live script ?
What specifically do you mean when you say argmin? Do you mean the location of the minimum element in a vector? See the second ...

6 years ago | 0

Answered
confusing regarding two cases of multiplication in MATLAB?
See this documentation page for a discussion of the difference between array operations and matrix operations, including example...

6 years ago | 0

Answered
Unsure what I did wrong
Don't try to raise exp(1) to the power of x. Just use exp on the array x directly. x = 1:5; y = exp(x);

6 years ago | 2

Answered
About Newton's method
As you've written your code F isn't a function. It's a numeric array. That means F(u(n-1)) is an attempt to get whatever is in e...

6 years ago | 0

Answered
Will MATLAB provide Bert word embedding support?
In general we don't discuss future plans. If you believe we should include this word embedding model in our products, please sub...

6 years ago | 0

Answered
using command to operate cftool
I don't believe there is a programmatic API for cftool. You probably want to use the programmatic workflows described on this do...

6 years ago | 0

| accepted

Answered
Getting handles of lines and deleting last 2 line plots
I wouldn't assume that the first two elements of the array returned by findobj were the last two lines created. I don't think th...

6 years ago | 0

| accepted

Answered
wind speed versus time ....mathematical expression
If you want to perform regression, see this page discussing linear regression and this one discussing nonlinear regression. You ...

6 years ago | 0

Answered
Number output when using syms
Call vpa or double on the symbolic expression.

6 years ago | 0

| accepted

Answered
scalar vs matrix vs vector vs array??
Please see the Description sections on the documentation pages for the isscalar, isvector, and ismatrix functions for a definiti...

6 years ago | 0

Answered
Please help to fix this error "First input argument must be a function handle".
for m = 1:N zm(m) = (m - 0.5)*dz - h; r(m) = @(z) sqrt(a^2 + (zm(m)-z).^2); K(m) = @(r)(exp(-1i*k*r(m)))/(r(m)) ...

6 years ago | 0

| accepted

Load more