Answered
can we plot convergence of a ode solver same as fsolve?
What would that look like? At each step, the ode solvers evaluate the function at several points "near" the current point, and...

4 years ago | 0

Answered
Can someone fix this code? Controlling voltage of a Digital Potentiometer(AD8400) using LM317 voltage regulator through Arduino Uno (such that the current remains constant)
if value>=200 reverse=1; end if value<=200 reverse=0; end If value is exactly 200, then...

4 years ago | 0

| accepted

Answered
Extracting coordinates from a text file
parts = regexp(atextfile, 'XY="(?<X>[^,]+),(?<Y>[^"]+)', 'names'); X = str2double({parts.X}); Y = str2double({parts.Y}); Unle...

4 years ago | 0

| accepted

Answered
An error due to output function
https://www.mathworks.com/help/gads/pattern-search-options.html#f18601 Your output function must have the following calling sy...

4 years ago | 0

| accepted

Answered
Get Drive Volume information
S = system('wmic diskdrive get serialNumber') Though I see some sites say S = system('wmic bios get serialNumber') The output...

4 years ago | 0

| accepted

Answered
Error , find entropy of 3d volumetric image on GLCM features ?
rgb2gray() has never supported more than one input, and has never supported recoloring images. rgb2ind supports passing in a co...

4 years ago | 0

Answered
Initial values used in nftool
The default values are shown in https://www.mathworks.com/help/deeplearning/ref/trainlm.html Initial weights and biases are ra...

4 years ago | 2

| accepted

Answered
Don't want to display results on command window
Change Losses =runpf(mpc); to evalc('Losses =runpf(mpc);');

4 years ago | 0

| accepted

Answered
Cannot open cdfx file
I suspect that you have a variable in your workspace named cdfx -- one that is not a function handle.

4 years ago | 0

Answered
Parallel computing seems to do nothing in fmincon and patternsearch
You have posted options=optimoptions('fmincon',UseParallel,'on','OutputFcn',@(x,A,state)myoutput_Spline(x,A,state,dt,M),'StepTo...

4 years ago | 1

Answered
Unable to find helperExtractLabeledData
However, there is not helperExtractLabeledData function. Where can I find it? That example is new as of R2020b, the release aft...

4 years ago | 1

| accepted

Answered
Cell array to double array?
cell2mat — but first you might need to reshape() the cell. Sometimes you need to first use cellfun an anonymous function that re...

4 years ago | 0

Answered
How to use logical operator in syms?
Use piecewise()

4 years ago | 0

| accepted

Answered
how to make figure perfectly squared?
You will need to create a calibration pattern and record it with some external camera, and create an undistortion matrix. You wo...

4 years ago | 0

| accepted

Answered
Not enough input arguments - trainNetwork
When you pass numeric data as the first parameter to trainnetwork(), then you need to pass four parameters, with responses as th...

4 years ago | 0

Answered
How to avoid a vertical line at discontinuity point?
If you use fplot() then you can use 'showpoles', 'off' to avoid vertical lines at discontinuities

4 years ago | 0

Answered
Display plots as movie without pause()
You could pre-calulate the steps and store each one as an image, and then use <https://www.mathworks.com/help/matlab/ref/movie.h...

4 years ago | 0

Answered
I am currently getting the error: Index exceeds number of array elements.
Change some of the variables to double, and make sure to round() some of the computations. % Multiple Switching - Equilibrium s...

4 years ago | 0

Answered
Evaluate function handle with "for"
f=input('Input the function: '); num_variables=nargin(f); varvals = {2, 2, zeros(1, num_variables-2)}; for i = 1 : num_v...

4 years ago | 0

| accepted

Answered
how can I find the values 88,89,90 and replace them as 65,66,67 using a for loop?
Generator = randi([65,90],[1,10]) for K = 1 : numel(Generator) if Generator(K) == 88 Generator(K) = 65; el...

4 years ago | 0

Answered
uniquetol give an "Unknown option specified" error when I run it on a cluster
That option is new as of R2021b, the release after your cluster has.

4 years ago | 1

| accepted

Answered
Unsure why parfor loop does not work in this case
N_New{h+1} = N{h+1}+1; That is one update of N_New N_New{h+1} = numel(SSet); and that is a second update within the...

4 years ago | 0

Answered
Showing output result in polar coordinate
MATLAB does not provide that as an output format. You will need to create your own function to display the data in the format yo...

4 years ago | 0

| accepted

Answered
Can't make .exe file from Appdesigner that include simulink model
This is a documented limitation of MATLAB Compiler. You need to use Simulink Coder to compile Simulink to an executable.

4 years ago | 0

Answered
How to find the integer values of the following system of equations
You can use ndgrid to construct a grid of all possible x1 x2 x3 values. Use those to express the first equation to see if the co...

4 years ago | 1

Answered
How to reopen a same figure with different buttons in Matlab App designer
You can store handles to figures as "properties" of your app, or you can store them as UserData properties of any of a number of...

4 years ago | 0

| accepted

Answered
NSGA-II algorithm
Mathworks does not have a built-in version. NSGA-II is not a specific program: it is an algorithm. You can find at least...

4 years ago | 0

| accepted

Answered
how to write a file in .mp3 format ?
https://www.mathworks.com/matlabcentral/answers/666993-matlab-code-for-writing-an-mp3-file-in-versions-after-2015#comment_116787...

4 years ago | 0

Answered
Error with anisotropic diffusion script
The great majority of gray-looking jpg images are actually rgb images. * you could take special steps to convert to a true gr...

4 years ago | 0

Answered
Where did my "save" icon go?
Click on the Editor tab at the top?

4 years ago | 0

| accepted

Load more