Answered
I am attaching the matlab code and input file and request to make it workable.
You were using tables where you should have used arrays. I cannot find any function named mean_squared_error, but you might wan...

3 years ago | 0

Answered
How to get Matlab/Simulink and Neural Network toolbox for my high school researcher?
https://www.mathworks.com/products/primary-and-secondary-schools.html A single license is purchased to cover an entire high sc...

3 years ago | 0

Answered
Unrecognized method, property, or field 'OOBError' for class 'TreeBagger'.
oob_error = rf_classifier.oobError; There is no property or method named OOBError for TreeBagger objects; there is a method oob...

3 years ago | 0

Answered
Undefined function 'mean_squared_error' for input arguments of type 'table'.
When you call TreeBagger there are two different syntaxes: TreeBagger(NUMBER, X, Y) or TreeBagger(NUMBER, TABLE, ...) You ar...

3 years ago | 0

Answered
error of: Declaring persistent variables in scripts is not supported.
persistent variables are stored in a workspace associated with each function. Script files do not have those workspaces. There i...

3 years ago | 0

Answered
Error with mutable function to code merge sort
On MATLAB, when you modify an input parameter, the change is local and does not affect the calling environment unless the new va...

3 years ago | 1

Answered
Unable to solve linear equation
a = 1.05; r = 0.60; m = 500; mc = 900; w = (m / 1000) * 9.81; wc = (mc / 1000) * 9.81; syms t2 alpha teta h eqn1 = (w...

3 years ago | 0

Answered
Error utilizing parfor loops with MTEX calcGrains function
parfor operates in a different process that does not have access to the base workspace established by the client.

3 years ago | 0

Answered
Is there any built in function for rgb to HSI and CMY?
There is no built-in function that converts directly from rgb to HSI. See https://www.mathworks.com/matlabcentral/fileexchange/5...

3 years ago | 1

Answered
How can I make ODE15s interpolate a value from a given table on each time step?
You can call interp1(), but you must use an interpolation method that is at least quartic (not linear). If your situation is su...

3 years ago | 1

Answered
Evaluate this equation using increments of 0.1 starting from 0
Lk = 5; ceq =1; t=90; q=0:0.1:0.5; mq = (((4*sqrt(Lk*ceq))-t)./((2*q*t) - t)); plot(q, mq)

3 years ago | 1

| accepted

Answered
Is it possible to create a symbolic matrix whose dimensions are symbolic scalar variables?
No, it is not possible in MATLAB. At the MATLAB level, symbolic arrays are plain arrays of objects, and the arrays have definit...

3 years ago | 0

| accepted

Answered
How can I determine if the absolute value of a coefficient of x in each element of a matrix was less than 0.01 consider it zero?
sympref('floating', false); tolerance = 0.01; syms X a=[ 1e-8*(X^2)+12*X-1e-6*(X)+14, -10*(X^2)+0.001*X-1e-6*(X^3); X, 4] a...

3 years ago | 0

Answered
How to convert cell array to int32
You cannot do that in a single ismember call. Use cellfun cellfun(@(s)all(ismember(s, T)), S) This will return a logica...

3 years ago | 0

Answered
Error in " The derivative function ODEFUN should return a column vector of length 5."
At least one of your calculated values is either empty or non-scalar. Remember that uninitialized global variables will be empt...

3 years ago | 0

Answered
How to remove the ripple or artifacts caused by lowpass filter?
Imagine that you were doing a discrete fourier transform of a square wave. Maybe it looks not bad at a target frequency. But the...

3 years ago | 0

Answered
Why is my matlab code to estimate VaR not working
TestWindow = TestWindowStart : TestWindowStart+ SampleSize-1;

3 years ago | 0

Answered
How to use indexing format inside symsum function
It is never possible to index by a symbolic variable at the MATLAB level. (There are some cases in the internal symbolic computi...

3 years ago | 0

Answered
rng state appears to be dependent on distribution type
randn() has different ways of computing a normal sample, with the exact method depending on which variety of random number gener...

3 years ago | 1

| accepted

Answered
Issue with MATLAB .exe seeing data in excel as stagnant data when I need it to be able to read with each run of the .exe
read about ctfroot which is the directory that the code will be executing in, and the location that your named files will have b...

3 years ago | 0

Answered
How do I change from 24 bit depth to 8 bit depth image?
imread() im2uint8() imwrite()

3 years ago | 0

| accepted

Answered
I have a new apple computer. How do I delete my old computer from my license and add my new computer?
if you still have the old system then look in the /Applications/MATLAB_R20xxx/ directory to find the deactivation app. Once you ...

3 years ago | 1

Answered
copy data from work space In a compact way
mat2str() provided you are comfortable with the possibility of losing the last two bits Otherwise you can build a string such...

3 years ago | 0

Answered
How to use the “PlayScript function” in matlab。I cannot find the message about it. Please give me some advice。Thanks very much.
This appears to use HYSYS See the discussion area in https://www.mathworks.com/matlabcentral/fileexchange/30551-composition-c...

3 years ago | 0

Answered
How to make a surface plot for two vectors?
You cannot do that. surf() and surface() can only handle 2D grids of data. For surf() and surface() the X and Y data do not need...

3 years ago | 0

Answered
edit the content present inside one cell
Notice that in the diagram for A, the entry starts and ends with apostrophe. A is a 1 x 2 cell array, the first entry of which i...

3 years ago | 0

| accepted

Answered
Legend command does not distinguish the colours specified in the plot command
The code does displays the plot but in the legend first three Machines are shown with same red colour and the fourth machine i.e...

3 years ago | 0

| accepted

Answered
Error using matlab.internal.imagesci.netcdflib
You asked to read a variable from a netcdf file, and you passed a list of starting offsets for the reading. However, you passed ...

3 years ago | 0

Answered
Error: Unable to perform assignment because the left and right sides have a different number of elements.
TNEW=0;TOLD=TNEW*ones(m,nt);TWALL=ones(1,length(t)); TWALL is numeric. D(i)=UOLD(i,j)-(dt*UOLD(i,j)*(-U(i,j-...

3 years ago | 0

Answered
Why does the workspace of MATLAB not display any variables while running code, but it does display variables during debugging
The variable browser is only updated when matlab returns to the command line. Otherwise the cost of updating the browser could b...

3 years ago | 0

Load more