Answered
Is it possible using the app.EditField.Value with buttons together with arduino
What did you expect to have happen when you asked to clear all ?

3 years ago | 1

Answered
Changing a 1D random placement code to 2D
So, algorithm: initialize output matrix board to 0 define function hasAvailableSlot(board) as testing whether there is any gap...

3 years ago | 0

| accepted

Answered
MATLAB plot image margin removal and aspect ratio keeping
nonblack = any(img,3); horzprofile = any(nonblack, 1); firstcol = find(horzprofile,1,'first'); lastcol = find(horzprofile,1...

3 years ago | 0

Answered
Suggest an Alternate for Nonzero (nnz) built-in function
Keep an extra row_has_been_filled variable that is initialized to false(X, 1) . Set row_has_been_filled(ROWNUMBER) = true when i...

3 years ago | 0

Answered
How can I derive inverse of the matrix with infinite determinant?
In theory if you have the symbolic toolbox, you could digits(16); sA = sym(A, 'd'); digits(32); Ainv = inv(sA); ... But tes...

3 years ago | 0

Answered
Basic plotting function not working in compiled version
MATLAB redraws the screen under any of several different circumstances: figure() is called, either to create a new figure or to...

3 years ago | 0

Answered
How do I correctly use vpasolve?
M_mag = 1 ; %just some constant simplified here as 1 om = 2*pi*new_freq ; ...

3 years ago | 0

Answered
How to Convert c code to matlab
That code cannot be written in MATLAB. That code is designed for embedded hardware, and uses vendor extensions to create hardwar...

3 years ago | 0

Answered
Array indices must be positive integers or logical values.
rng(0) That line would have a problem if you had a variable named rng instead of function rng being called. shuffledIndices = ...

3 years ago | 0

Answered
Error solution in particle filter
%% Process equation x[k] = sys(k, x[k-1], u[k]);% untuk state vector nx = 10; % number of states sys=@(k, xkm1, uk) xkm1./2 +...

3 years ago | 1

Answered
Timeseries plot for mean temperature
dsT = reshape(dataStruct.', [], 1); DT = datenum([dsT.Year], [dsT.Month], ones(1, numel(dsT))); MM = [dst.Mean]; ts = tim...

3 years ago | 0

Answered
Columns of a matrix given a condition
tt=[0 0 0 0 0 1 0 0; 1 1 1 0 0 0 0 0; -1 0 0 0 0 0 0 0 ; 1 0 0 0 0 0 0 0; 0 0 0 0 1 1 0 1; 0 0 0 0 0 0 0 1 ] mask = all(ismemb...

3 years ago | 0

Answered
Why is the derivative of a matrix not of the same order?
For the case where rotations are no rotations in z, but there are two joints moving around and with angular rotational velocit...

3 years ago | 1

Answered
Simbiology "Project Save Error"
you are potentially seeing the relatively recent issues due to Linux kernel changes in how files are copied, changes that mostly...

3 years ago | 0

Answered
Solving equation with two for loops
iiy = 1.8; rho_s = 2160; rho_w = 997; M_s = 58.44 * 10^-3; M_w = 18* 10^-3 o = 0.072; H = linspace(0.1,1,100) T = ...

3 years ago | 1

Answered
set colormap values to an array
colorpost = [ -1.4721 -11.3430 23.4227 7.0674 -2.7839 42.3308 -2.6353 0.1617 6.3158 -20...

3 years ago | 0

| accepted

Answered
What is Truncate ?
Use size() or numel() to find the existing lengths. Find the minimum of them. Use indexing like A(1:HOWLONG) to pull out part of...

3 years ago | 0

Answered
Draw the path of a random movement of a mouse using drawnow
drawnow() is a "show me what you have so-far" function. It is inefficient to have the screen update after every graphics chang...

3 years ago | 0

| accepted

Answered
using symsum with a vector
You cannot use symbolic notation for that purpose. symsum() is primarily intended to attempt to find an indefinitely precise cl...

3 years ago | 0

Answered
"The file has been modified outside of MATLAB Editor. Do you want to reload it?" error. How to repair that?
One of the ways this can occur is if you are using a network file system, either local or something like OneDrive, and if the sy...

3 years ago | 1

Answered
I keep getting an error that the rows and columns must be of power 2. Am confused
file_name=uigetfile({'*bmp;*.jpg;*.png;*.tif;';'*.*'},'select an Image File'); You are taking an input image file, preferably b...

3 years ago | 0

Answered
negative data ignored when set axis to log
in order to figure out where on the screen to draw the lines when you are using log scale, matlab needs to take log() of the coo...

3 years ago | 0

Answered
Passing variable from MATLAB APP Designer Edit Field to a variable inside a .m file.
make x a property of the app. Have your callback do app.x = app.x_valueEditField.Value;

3 years ago | 0

Answered
Am I required to pay software maintenance service in order to purchase more add-ons
Maybe. The guidelines used to be that you could purchase new toolboxes up to two years after the release of the software, eve...

3 years ago | 0

Answered
How to display the current result when the program is forced to abort?
There is no way to catch a control-c to be able to perform action such as saving current values of variables. If you are exec...

3 years ago | 0

Answered
Error using / Arguments must be numeric, char, or logical. what should I do I tried but did not seem to work?
Never inline() a symbolic expression, it is not defined. matlabFunction() instead. Never eval() a symbolic expression either,...

3 years ago | 0

Answered
'MarkerFaceColor' according to y value
No it is not possible with any documented method (maybe with undocumented methods). The workaround is to not place markers in...

3 years ago | 0

Answered
help with dynamic rename (and run) of m-file
is deck a script or a function with no parameters? If it is a script see run() If it is a function then create a function ...

3 years ago | 0

| accepted

Answered
I get the error Not enough input arguments in line 2 always when I tried to run the code.
You cannot invoke that code just by pressing the green Run button. Pressing the run button executes the code with no parameters....

3 years ago | 0

Answered
components of a vector with sign, having direction and magnitude
take the difference between the endpoints, getting vector components. Divide the vector by the length of the vector. Multiply th...

3 years ago | 0

| accepted

Load more