Answered
I have put different log in name in mathworks account than that of my OS. How to resolve this?
You re-run the activation process. This time, you need to specify the username the same as the Windows username https://www.math...

1 year ago | 1

Answered
Convey binary sting into 2 bits format
11111111111111111111110000011120101111000111100000 (48 bytes) MATLAB is going to treat this as a decimal number, in double pr...

1 year ago | 0

Answered
starting vector (zero vector) equals lower bounds but gets projected to non-zero vector
Although the documentation says that lb specifies that x(i) >= lb(i) for all i the implementing code has violatedLowerB...

1 year ago | 0

| accepted

Answered
R2024b: When trying to open an M file, I receive the message: Unrecognized function or variable 'uiopen'
Experiment with using restoredefaultpath; rehash toolboxcache If that works then savepath

1 year ago | 2

| accepted

Answered
DelaunayTri
As of R2013a you can create a triangulation object, passing in the connectivity and x and y and z data. Unfortunately, you cann...

1 year ago | 1

Answered
Why am I recieving the following error "Warning: Failure at t=1.705994e+00. Unable to meet integration tolerances without reducing the step size below the smallest value all"
When you call a function from ode45(), it is strictly necessary that the called function is continuous to its second derivative....

1 year ago | 0

Answered
How do I share files with matlab drive?
Open https://drive.mathworks.com Navigate to the directory containing the files you want to share. Right click and select Sha...

1 year ago | 1

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 3-by-1.
You initialized ImJPG_Sepia as an n by m by 1 matrix.

1 year ago | 0

Answered
Fminsearch error: not enough input arguments.
[y_ex,fval]=fminsearch(@(beta,sigma) subjectval(beta,sigma),y0) fminsearch passes a single vector to the object function. You h...

1 year ago | 0

Answered
Given the spectrum of a signal x(t) , What is the minimum sample rate that would allow for x[n] to be recoverable?
This is a square wave. The fourier transform of a square wave consists of an infinite series of odd harmonics; https://dsp.stack...

1 year ago | 0

Answered
is it possible to perform a nested Batch?
Once you have reached the limit on the number of simultaneous batch jobs, individual batch jobs are not going to suspend themsel...

1 year ago | 0

Answered
Find the indices of numbers that occur first
[found, idxV] = ismember(X, V); This will return the idx of elements of X within V; found(K) will be false if X(K) does not mat...

1 year ago | 1

Answered
Vertical 3D to Horizontal
Instead of parenting your scatter3() to an axes (even if only by default): Create a hgtransform object that is parented to the ...

1 year ago | 0

Answered
How many template of 3D graph exist in Matlab ?
How many template of 3D graph exist in Matlab ? No templates of 3D graphs exist in MATLAB. No templates of 2D graphs exist in ...

1 year ago | 0

Answered
how to calculate amount of energy consumption energy cryptography and steganography in matlab?
Accurately measuring energy consumption on a host MATLAB session is very difficult. You need to take into account that the compu...

1 year ago | 0

Answered
how to enable mex -setup for Visual Studio 2022 on MATLAB R2021a?
R2021a supports VS 2019 at newest.

1 year ago | 0

| accepted

Answered
set the tick format of y axis
See ytickformat and also the Exponent property of axes; https://www.mathworks.com/help/matlab/creating_plots/change-tick-marks-a...

1 year ago | 0

Answered
how to use categorical in uitable
cat=categorical({'Fil';'Stat'}); That is categorical. VTYPES=[{'logical'},{cat}]; That is a cell array that includes an eleme...

1 year ago | 0

Answered
How to use fzero with arrayfun or cell fun?
tr = fzero(@(t) t_thres(t,c),[miny maxy*10]); The @(t) t_thres(t,c) part creates an anonymous function that copies its...

1 year ago | 1

Answered
How do you get a variable to recognized in function
function [C,D]=GetUserInput() That code does not mean that variables C and D are to be set in the calling context. MATLAB outpu...

1 year ago | 0

Answered
How to extract specific information from a table, an output when fitlm() function in sued
Store the result of fitlm() in a variable, such as mdl Access the Rsquared property of the variable such as mdl.Rsquared This...

1 year ago | 0

| accepted

Answered
Is there any way to perform an at least partially symbolic smulation (using ODE or discrete model) in simulink?
If you turn rapid acceleration off, and use coder.extrinsic then you can include symbolic calculations within any one MATLAB Fun...

1 year ago | 0

Answered
Name is nonexistent or not a directory
Give the commands restoredefaultpath; rehash toolboxcache savepath

1 year ago | 0

Answered
Use the plot function to set the curve transparency
plot() has no documented ability to specify RGBA, or transparency in any form. Modern versions of plot() have an undocumented a...

1 year ago | 0

Answered
expressing the complex function
You can use real() and imag(), but they will not help much. A problem is that you do not constrain x or t to be real-valued, so...

1 year ago | 0

Answered
How do I convert a decimal number of months to a datetime format?
decmonths = [9.545563 22.212227]; offsets = calmonths(floor(decmonths)) + days(decmonths - floor(decmonths)) base = datetime...

1 year ago | 0

Answered
Plotting data dependent on three independent variables.
Use scatteredInterpolant() to compute a resultant surface with three independent inputs. Use isosurface() or slice() to plot th...

1 year ago | 0

Answered
Only the first if-statement block executes,
if 0 <= alpha <= pi/2 MATLAB interprets that as if ((0 <= alpha) <= pi/2) the first part, 0 <= alpha, produces a logical valu...

1 year ago | 0

| accepted

Answered
Display Image to a specific Monitor
get(0,'MonitorPositions') will return a list of [StartX, StartY, Width, Height] coordinates. You would access the StartX and ...

1 year ago | 0

| accepted

Load more