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

Respondida
Matlab GA parallel computing
fid = fopen('Design_Variables.inp', 'w+'); % Ansys APDL reads this %... ansys_input = 'ANSYS_APDL.dat'; output_file = 'out_fi...

más de 1 año hace | 0

| aceptada

Respondida
Solving ODE with explicit equations
if and(t >= 0.05, t < 1.5) k = 0.05; elseif and(t < 0.05, t >= 1.5) k = 0; end Ug = n + k * V1; That code only def...

más de 1 año hace | 1

Respondida
Fitting and predicting from 3D data
idx = find(Output(Var1,:,:) == OutputValue); [~, var2, var3] = idx2sub(size(Output), idx); Except that comparing using == is n...

más de 1 año hace | 0

Respondida
Getting the evaluation progress of the gather command
You need to turn diary on, and access the diary file while it is still being written. As you will need code to do that, and the ...

más de 1 año hace | 0

| aceptada

Respondida
syntax of this line tmp = cellfun(@(tbl) tbl(:, cellstr(dataVariables(ct))), trainDataNormalized, 'UniformOutput', false);% in RUL tutorial
@(tbl) tbl(:, cellstr(dataVariables(ct))) That syntax outputs the handle of an anonymous function. The anonymous function acce...

más de 1 año hace | 0

Respondida
An error occurred while running the simulation and the simulation was terminated
You have a MATLAB Function block in the lower left. It has s0 as input and ds0 as output. The 4th line of code for it is ds0=(s...

más de 1 año hace | 0

Respondida
How can I run a system-level simulation with 802.11be, in which I can use MRU?
https://www.mathworks.com/help/wlan/gs/802-11-standards-supported-by-wlan-toolbox-for-phy-modeling.html 802.11be™ support is cu...

más de 1 año hace | 0

Respondida
How to modify the mesh generated from meshgrid to create a rectangular void in the middle of the mesh
You might be better off taking a different approach. You might be better off decomposing a geometry If you follow the steps fro...

más de 1 año hace | 0

Respondida
Big Tiff Grayscale image looks unsharp/ Grayvalue is not shown properly
When imshow is asked to display an image that is larger than the figure size, it displays a downscale version of the image. The ...

más de 1 año hace | 0

Respondida
Import 2d image to 3d plot
The major problem with mixing 3d plots with images, is that image() is a strictly 2D object -- images disappear quickly when til...

más de 1 año hace | 0

| aceptada

Respondida
Concerned that matlabFunction( ), when converting from symbolic to numerical, changes the sizes of matrices and vectors,
The expression is creating a 1 x 9 vector and reshape() it to 3 x 3. It may be a bit clumsy compared to directly generating a 3 ...

más de 1 año hace | 1

Respondida
Keep trailing zeros in an output file.
You cannot do that using writematrix() You can use dlmwrite with a 'precision' option. However, there is no option to adjust th...

más de 1 año hace | 0

| aceptada

Respondida
Why does Matlab tell me that my ODE function returns a vector of length 12, while the length of my initial conditions vector is 6?
It is common for this to happen if you accidentally forget to index the variable, For example, dydt = [z(1).^2; z(2)-z...

más de 1 año hace | 0

| aceptada

Respondida
Different color scale?
caxis([0 0.3]); That is affecting the current axis. caxis([0 0.5]); That too is affecting the current axis. Which app...

más de 1 año hace | 0

Respondida
reshape data to fit into surf/contour
You cannot do that. Consider using https://www.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-for-scattered-data ...

más de 1 año hace | 1

| aceptada

Respondida
How fmincon really work?
fmincon() always tries to minimize the result of the objective function. If the objective function returns negative values, then...

más de 1 año hace | 0

Respondida
How to get PWM on digital outputs pins of NI-6052E DAQ card?
Use a single Digital Output (Single Scan) block https://www.mathworks.com/help/daq/digitaloutputsinglesample.html Configure i...

más de 1 año hace | 0

Respondida
I have made a code which runs on matlab online but shows an error when run on my local pc
In R2022b, R2023a, and R2023b, https://www.mathworks.com/help/releases/R2023b/audio/ref/speech2text.html has a different calling...

más de 1 año hace | 0

Respondida
vpasolve doesn't work with roots for some equations
vpasolve((-1.2068e+21*x - 2.0765e+20)^(1/2)==-2.2185e+10,x) The left hand side involves a square root. The right hand side invo...

más de 1 año hace | 0

| aceptada

Respondida
Matlab ilaplace not working properly
syms s sol = ilaplace(40/(s*(2*s^3 + s^2 + 6*s + 2))) disp(char(sol)) fullsol = rewrite(rewrite(sol, 'expandsum'), 'expandroo...

más de 1 año hace | 1

Respondida
I am trying to store all the values ​​of (f) and all the corresponding peaks of the resulting wave in two columns and then plot f vs. peaks, but there is a problem.
findpeaks() is returning different numbers of peaks for each frequency. clc clear all tspan = [0 5]; Ic = 0; A=1; resu...

más de 1 año hace | 0

| aceptada

Respondida
how to plot cross hatch over correlation map?
In https://www.mathworks.com/matlabcentral/answers/2141881-how-to-make-a-specific-bar-to-be-hatched-with-a-specific-color#commen...

más de 1 año hace | 0

Respondida
Hi, how do I fix the error using superiorfloat? I've tried using double() for the subs() like I've seen suggested before but that caused an error.
eomFunc=odeFunction([thetadot,NOFFEOM],[theta,thetadot],mu,R,m,k); The syntax of odeFunction requires that the third parameter ...

más de 1 año hace | 1

| aceptada

Respondida
Identifying Boundary Nodes in a Point Cloud
Your red nodes are sometimes immediately adjacent to your blue nodes. There is no way you will be automatically able to differen...

más de 1 año hace | 0

Respondida
Matlab 2024a not starting after Mac OS Sonoma 15.1 Update
I recently upgraded to MacOS Sequoia 15.1.1 (a day after upgrading to 15.1). I am now getting this message for all MATLAB versio...

más de 1 año hace | 0

Respondida
como resolver este en matlab
exp(x.^2 + y.^2)

más de 1 año hace | 0

Respondida
hello Dear!! I'm a new coming in the community I want your help. about coding on MATLAB does the code is correct ? or the using of (&&) is no faire? and how can I correct it? thank you for respond .
if app.LikeCheckBox.Value==true app.EditField.Value='you Like our channal' elseif app.LikeCheckBox.V...

más de 1 año hace | 0

Respondida
Solve 𝑔 ′ ( 𝑥 ) = 0 for z in terms of N, a positive integer
Let's try... Q = @(v) sym(v); syms f(x) g(x) G(z) syms z positive syms N integer assumeAlso(N, 'positive'); g(x) = 4*N*s...

más de 1 año hace | 0

Respondida
I want to draw pathline for two particle for a 2d problem
When you use griddedInterpolant, then your x must have all of its columns the same, and the row values must be sorted. Your y mu...

más de 1 año hace | 1

Cargar más