Answered
Error using mupadmex Error in MuPAD command: symbolic:sym:isAlways:LiteralCompare|0 < root(z^20 - (555455*z^19)/28224 + (21279533*z^18)/112896 - (524070713*z^17)/451584 + (331
Your equality is equivalent to a polynomial of degree 20. MATLAB is not able to find a closed form solution for the roots (whic...

2 years ago | 0

Answered
How to generate secure random numbers?
Will Bcrypt be introduced into MATLAB? I very much doubt that Bcrypt will be included into MATLAB. Is there a way to generate ...

2 years ago | 0

Answered
How to evaluate a symbolic expression having `max` and `diff`?
The derivative of max() is not generally defined. You would probably have more success if you defined in terms of piecewise() i...

2 years ago | 0

Answered
Error in MATLAB R2021a: Example Not Found in Specified Path
https://www.mathworks.com/help/nav/ref/statesamplergaussian.sample.html That example is new as of R2023b.

2 years ago | 0

Answered
Using the piecewise function and integration function with fplot
syms t %set up capacitor graph V1 = (1/0.3e-9)*int(t*(5000/3),t); %Plot 0<t<3 V2 = (1/0.3e-9)*int(5e-3,t); %Plot 3<t<6 V3 = ...

2 years ago | 0

| accepted

Answered
Problem evaluating very small numbers
Is there some trick to avaluate those non zero probabilities and overcome the limit of eps(0)=4.9407e-324 Not without using the...

2 years ago | 0

Answered
Display answer in degree
disp('Solution (in degrees):'); disp(rad2deg(solution));

2 years ago | 0

Answered
How to apply if statement with nonlinear inequality constraint with fmincon Optimization Toolbox
You need to assign to c(i) instead of to c You fail to assign anything in the case that load(i+1) == load(i) which is a problem...

2 years ago | 1

| accepted

Answered
Why do I get license manager Error 114 after activation?
The newer version of MATLAB relies on facilities not available in earlier versions of the license server. The manager of the l...

2 years ago | 0

Answered
Doesn't show the result as an integer even though the result of the operation is an integer
dt=0.0001; fprintf('%.99g\n', dt) t_final=2.26; fprintf('%.99g\n', t_final) Nt = t_final ./ dt; fprintf('%.99g\n', Nt) ...

2 years ago | 0

Answered
construct a local function using a mixture of real and symbolic math
You can simplify a lot. rho = sym(0.5); syms a b assume(a > 0 & a <= 1); assumeAlso(b > 0 & b <= 1); m = 4; kk =sym('kk');...

2 years ago | 0

Answered
Matlab r2017b wont run on Sonoma
Sorry, no it is not compatible. Even the command line version will not work.

2 years ago | 0

Answered
Creating a for loop based on a condition
for K = 1 : inf do some calculation stored_results(K) = the_output if the_output == the_certain_value br...

2 years ago | 0

| accepted

Answered
Do Orphaned sym Objects in the Symbolic Engine Matter?
func assumptions() z = sym('z') assumptions() syms z assumptions() function func sym('z','positive'); end So, no yo...

2 years ago | 0

| accepted

Answered
Image classification Deep Learning on ARM
No, MATLAB has no support for NPU.

2 years ago | 0

| accepted

Answered
Syntax for optimization with integer and continuous variables, nonlinear equalities and inequalities?
You just cannot do that using ga(). You can potentially do that using surrogateopt() ... But there is a lot to be said for @M...

2 years ago | 1

Answered
How to multiply two matrices with different dimensions with high speed
The (:) operator is one of the very fastest operators in MATLAB. It leaves the data pointer completely intact and just rewrites ...

2 years ago | 3

Answered
How to incorporate axesm-based maps in an app
There is no straight-forward way of doing this. axesm() does not have anything similar to a 'Parent' property. axesm() is writte...

2 years ago | 0

| accepted

Answered
For loop to enter values in array inputted by user.
i = 0; while true x = input('Insert the X components of signal (INCLUDING ZEROS) one by one, clicking enter after each inp...

2 years ago | 0

Answered
unable to open .cdf file
cdfread() does not preserve column names. files = dir('mvn_lpw_*.cdf'); num_files = length(files); data= cell(1, num_files); ...

2 years ago | 0

| accepted

Answered
"Execution of script cfunc as a function is not supported" i don't understand why i get this error, i tried making a function on multiple intervals
You do not define D or E L=0; A1=-0.0036; A2=-0089; A3=8.75e-4; B1=1.8e-5; B2=2.7188e-5; B3=-4.5e-6; L1=0.0035; L2=0.00...

2 years ago | 0

Answered
Can I change the value of gain while the song is playing in audioplayer library , app designer matlab.
Simulink models typically run to completion each time they are invoked, so connecting them up for there to be a "live" connectio...

2 years ago | 0

Answered
Difficulty Generating Analog Output of White noise - Data Acquisition Using Simulink NI USB-6009
https://www.mathworks.com/help/dsp/ref/colorednoise.html If the bounded option is enabled, the output is uniform white noise w...

2 years ago | 0

Answered
simulink to workspace vs to file which is faster
Logging to workspace is faster than logging to file. However, if you log to file then if you interrupt the execution then you ...

2 years ago | 1

Answered
How can I make it so that the value from my slider changes the rotation speed of the ferris wheel in my code?
slider = uicontrol('Style','slider','Min',0,'Max',100,'Value',0, 'SliderStep',[0.1 0.1], ... 'Units', 'normalized', 'Positi...

2 years ago | 0

Answered
Redirect output of MATLAB verbose function
fminbnd() supports optimset() options, including OutputFcn and PlotFcn . So you can program a PlotFcn -- which will be called w...

2 years ago | 2

Answered
how to express operators in symbolic algebra
MATLAB does not support creating operators: it only supports creating functions and expressions. For example, P^3 to represent ...

2 years ago | 1

Answered
i want to make inverse kinematics for 3 dof robot arm usnig Newton Raphson in matlap but i always get this error "(Not enough input arguments. Error in robo2 (line 2) )"
Reorder the parts. format long g x = 2; y = 3; z = 5; l1 = 10; l2 = 10; l3 = 4.5; epsilon = 0.01; t = compute_inv(x, y,...

2 years ago | 0

Answered
Arrays have incompatible sizes for this operation. Error in CDproydosverdos (line 28) Rx_sample = bsxfun(@times, x(t + lags), x(t)); Related documentation
t = linspace(0, T, 10001); %... x = A*cos(2*pi*fc*t + theta) + sqrt(N0)*randn(size(t)); x becames a 1 x 10001 T = 1000;...

2 years ago | 0

Answered
how can i create a smooth curve through data points
x=-0.6745:0.06745:0.6745; x1=-0.6499:0.06499:0.6499; x2=-0.5856:0.05856:0.5856; f=[21.0956 20.4078 19.6966 18.9596 18.1937 17...

2 years ago | 0

Load more