Respondida
关于 ndgrid 如何用正整数参数 生成 浮点数网格坐标数组, 然后用 hypot 计算矢量长度度, 出错 ?
Yes, ndgrid with two outputs is designed to have the same output type as input type. Well, except that sparse matrices are promo...

más de 1 año hace | 0

| aceptada

Respondida
How to use "predict" to get x value for a given y value?
Scattered X and y values with X increasing. Suppose you had the input X Y 1 1 1 0.5 1 -0.1 2 2 2 1...

más de 1 año hace | 0

Respondida
How to use y2abcd function if y parameter matrix has variables
Nothing in the RF toolbox accepts symbolic parameters (unless it is by accident.) You cannot use y2abcd() with symbolic paramet...

más de 1 año hace | 0

| aceptada

Respondida
How to check if errordlg is shown
Looking at /Applications/MATLAB_R2024b.app/toolbox/shared/dastudio/+DAStudio/@DialogProvider/DialogProvider.m it appears to be ...

más de 1 año hace | 0

Respondida
fmincon is not working
I bet expected_returns is a row vector. fmincon() passes values to the objective function in the shape of the x0 array. Here yo...

más de 1 año hace | 0

Respondida
please help me to understand "AWGN Channel" and "HDL Implementation of AWGN Generator" blocks ?
HDL Implementation of AWGN Generator is used in HDL designs. It is specifically designed for HDL use. AWGN Channel is designed ...

más de 1 año hace | 0

Respondida
complex number : real part and imaginary part
syms x mu real syms t real %c alpha=1 U=zeros(1,1,'sym'); A=zeros(1,1,'sym'); B=zeros(1,1,'sym'); C=zeros(1,1,'sym'); D=...

más de 1 año hace | 0

| aceptada

Respondida
How to write subscript and superscriopt in a single variable?
You can create symbolic variable names that are specially formatted. When expressions using those names are displayed in LiveScr...

más de 1 año hace | 0

Respondida
When I try to constrain node 3 to a line my displacements become ridiculously large, what am I doing wrong?
The rank() of GlobalK is only 6 but the matrix is 8 x 8. Using GlobalK \ F is likely to generate garbage. If you must use a ra...

más de 1 año hace | 1

| aceptada

Respondida
Expression is too large for MATLAB to evaluate
Unfortunately, the expression is simply too large for the Symbolic Toolbox to handle. You will need to do something like taking...

más de 1 año hace | 0

Respondida
why do i get error using * ?
integral() always passes a vector of values to the function being integrated (unless 'ArrayValued' is set to true). So in inte...

más de 1 año hace | 0

Respondida
Do not understand documentation to add third party Arduino libraries
I suggest you use arduino-cli lib install --zip-path /PATH/TO/RoboClaw.zip --config-file arduino-cli.yam

más de 1 año hace | 1

| aceptada

Respondida
Is there a way to pause gamultiobj, run other computations/scripts and resume gamultiobj (with and without restarting MATLAB)?
First of all, create some globally accessible stop flag, such as in the base workspace. Second of all, run gamultiobj with opti...

más de 1 año hace | 0

Respondida
Why can't Matlab do the factorial of a non-integer number?
MatLab 'factorial' is coded so to work with integers only. More generally: factorial is only defined for non-negative integers....

más de 1 año hace | 1

Respondida
Simpson method, ezplot (with strings)
Calculate dt first. Then calculate Q.*c.*dt. Now use https://www.mathworks.com/matlabcentral/fileexchange/25754-simpson-s-rule-f...

más de 1 año hace | 0

Respondida
question about dely lines
you cannot implement those equations. e(n) is defined in terms of d(n) d(n) is defined in terms of e(n - something) Sub...

más de 1 año hace | 1

Respondida
Matlab to solve finite difference for Ode
S = 'aa = 1; bb = 2; alpha = 1; beta = 2; n=29;      % h = (bb-aa)/(n+1);   h=0.1' idx = find(S>128) S(idx) S(idx)+0 Your co...

más de 1 año hace | 0

Respondida
Event triggered control using ode45
Proceed as described in https://www.mathworks.com/matlabcentral/answers/2169908-while-in-ode45#answer_1552013 %assuming r_k is...

más de 1 año hace | 0

| aceptada

Respondida
Change Stacking Order of Plots
pdeplot(results.Mesh, XYData=results.NodalSolution, ZData=results.NodalSolution, ColorMap="jet"); view(2) Those lines imply th...

más de 1 año hace | 0

| aceptada

Respondida
hi, it says "Unable to perform assignment because the size of the left side is 1-by-3 and the size of the right side is 1-by-2" and the error is at line 96 in my code
Node(1,:) = [0,0]; Node(2,:) = [3,3]; Node(3,:) = [6,6]; Node(4,:) = [9,9]; Node(5,:) = [18,0]; Node(6,:) = [9,0]; That cr...

más de 1 año hace | 0

Respondida
control random number generator in async programming
parpool are defined to seed random number generators differently. See https://www.mathworks.com/help/parallel-computing/control-...

más de 1 año hace | 1

Respondida
How to get 1 as the highest order coefficient in a polynomial expression?
syms p K_s0 Phi_V Phi_G s K_p K_x0 T_i real; Phi_V = -p*(K_p/K_x0)*(1 + 1/(s*T_i))*1/s; eqn1 = p == K_s0*(Phi_V + Phi_G); eqn...

más de 1 año hace | 0

Respondida
The line on the legend are not showing
What you describe sounds as if either X_1 or Y_1 are scalars. In such a case, requesting . or o will draw markers, but there wou...

más de 1 año hace | 0

| aceptada

Respondida
Plotting z = f(x, y) when (x, y, z) values are known
Use https://www.mathworks.com/help/pde/ug/decsg.html to create a decomposed geometry. Calculate the temperature values on the r...

más de 1 año hace | 0

| aceptada

Respondida
why do I get a negative numbers???
opts = optimoptions('fsolve', 'MaxFunctionEvaluations', 1e6, 'MaxIterations', 1e6); Guess = linspace(0,.001, 23); Answers = fs...

más de 1 año hace | 0

Respondida
TI Radar Toolbox with DCA1000EVM Connection - Continuous error occurs when attempting to connect with an Ethernet cable
Your ipconfig shows that you have configured the local IP address of the second interface as 192.168.33.30 . However, 192.168.33...

más de 1 año hace | 0

Respondida
how to extract only digits from an image
Use ocr passing the option 'CharacterSet', with value '0123456789'

más de 1 año hace | 0

Respondida
How do I extract data from a structure using a for loop?
fieldnames = fieldnames(YourDataStructure); num_fields = length(fieldnames); last_field_values = cell(num_fields,1); for FI...

más de 1 año hace | 0

Respondida
is there a way for a creation of variables for machine learning inside a loop from a dataset of waves
data_names = who('-file', 'sub-036_task-eyesclosed_eeg.set', '-regexp', '^data_\d+$'); for DNI = 1:length(data_names) this...

más de 1 año hace | 0

Respondida
I have an error using walsh. It says
walsh() is not the name of any Mathworks supplied function. walsh() is the name of one File Exchange contribution, https://www....

más de 1 año hace | 0

Cargar más