답변 있음
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-...

1년 초과 전 | 1

답변 있음
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...

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

| 수락됨

답변 있음
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...

1년 초과 전 | 0

| 수락됨

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

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

답변 있음
how to extract only digits from an image
Use ocr passing the option 'CharacterSet', with value '0123456789'

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

답변 있음
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....

1년 초과 전 | 0

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

1년 초과 전 | 0

| 수락됨

답변 있음
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...

1년 초과 전 | 1

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

1년 초과 전 | 0

답변 있음
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 ...

1년 초과 전 | 0

| 수락됨

답변 있음
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...

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

답변 있음
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 ...

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

| 수락됨

답변 있음
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 ...

1년 초과 전 | 1

답변 있음
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...

1년 초과 전 | 0

| 수락됨

답변 있음
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...

1년 초과 전 | 0

| 수락됨

답변 있음
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...

1년 초과 전 | 0

답변 있음
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 ...

1년 초과 전 | 1

| 수락됨

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

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

답변 있음
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...

1년 초과 전 | 0

| 수락됨

답변 있음
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...

1년 초과 전 | 1

더 보기