Answered
How to delete two minimum elements in a vector?
Use the mink or maxk functions introduced in release R2017b.

8 years ago | 0

Answered
I'm getiing this error while running the below code and the error is "Function 'subsindex' is not defined for values of class 'cell'". Could anyone tell me the way to minimize it?
You've defined a variable named trainingOptions. That line of code is being interpreted as an attempt to index into that variabl...

8 years ago | 0

| accepted

Answered
Is there issue with .mat files in matlab R2018b?
Is this part of the error message exactly how it appears in the Command Window? Can not write file C:\Users\STG\Desktop\ART_LTS...

8 years ago | 0

Answered
I'm not being able to open or save scripts
Your function length.m is taking precedent over the built-in length function. Functions that expect to call the built-in functio...

8 years ago | 0

Answered
How to display the x and y coordinates of specific points on the plotted graph in matlab??
Do you want to place some text there using the text function?

8 years ago | 0

| accepted

Answered
How to extract raw data of ode23 or dde23 simulation?
If you want to stop the solution process once one of the components exceeds a certain value, use an Events function (see the Eve...

8 years ago | 0

| accepted

Answered
Draw direction arrows on top of wind magnitude time series.
Do you want to overlay a quiver plot on top of a regular line plot? If so, call hold on after creating the first plot but before...

8 years ago | 1

| accepted

Answered
Why does the auto-evaluation code give me an error for the last argument ?
From the assignment: The output of the function gives the indexes of such elements found in column-major order. Does your funct...

8 years ago | 0

Answered
How can i put my four different arrays dataset in the in form of [X,Y,Z,V] = flow (10)
The flow function is a helper function used by a number of demo files. It doesn't do anything really special. It just calls mesh...

8 years ago | 0

Answered
At least one END is missing: the statement may begin here.
Copy and paste this code into the MATLAB Editor. Select all that text, right-click, and select the "Smart Indent" menu option. T...

8 years ago | 1

Answered
i confuse using syms variable
The symbolic expression on the right side of the equals sign: L*[(bet(i)*vtet(i))/(tet(i)^2);-(alf(i)*vtet(i))/(tet(i)^2);(stet...

8 years ago | 0

| accepted

Answered
Debug and Focus, Huh?
Try turning off the "Automatically open files when MATLAB reaches a breakpoint" entry in the MATLAB Editor/Debugger preferences....

8 years ago | 2

Answered
Implement a user defined function that generates matrix of random integers of specified order and range
Implementing the Mersenne Twister (as used by default by rand, randi, and randn) seems like a pretty big task for a homework ass...

8 years ago | 2

Answered
How to break down fminsearch in execution
So you want the optimizer to show you some information then wait for you to perform some sort of experiment and provide the answ...

8 years ago | 0

| accepted

Answered
Nested Indexing in a Single Line command
Using the answer from Bob Nbob's comment: mystr = regexp(exp{end},'\W','split'); mystr = mystr{end}; That's one line (albeit n...

8 years ago | 0

| accepted

Answered
ode45 error problem in following code
mu = @(S,P) mumax*S./(Ks + S)*(1 - (P/Kp))^0.5; % Monod Equation rg = @(X,S) mu(S)*X; % Rate of cell growth As defined mu is a...

8 years ago | 1

Answered
Where do I find the files for Simulink examples in R2018b?
If you have the SimEvents product installed, this command will show you where the file is located. which seExampleEstimatingAss...

8 years ago | 0

Answered
Order of the Matlab Ode Solutions Appearing at Output?
If you're solving ODEs using ode15i or any of the numeric ODE solvers in MATLAB, the order of the solutions in the y output (or ...

8 years ago | 1

Answered
Convert character matrix to numeric matrix
If I understand your goal correctly, use the unique function. sampleWords = {'apple', 'banana', 'cherry'}; n = numel(sampleWor...

8 years ago | 1

Answered
Is there any way to normalize any matrix values to be between (-1) and (1)?
Use the normalize function with the 'range' method if you're using release R2018a or later.

8 years ago | 0

Answered
Table column with different subclasses of a superclass
So you want a heterogeneous array?

8 years ago | 2

| accepted

Answered
Finding the 7-day minimum of a time series
I think you should be able to use the output of the movmin function to do what you want. A = [7 6 5 4 3 2 3 4 5 6 7]; r = movm...

8 years ago | 2

| accepted

Answered
I want to get minimum number of k for the sum of series to be greater than 10000. But I am getting S=0 and k=1 only.
Is 0 greater than 10000? If not, MATLAB will never enter the body of your while loop. Your condition is incorrect. BTW, your ti...

8 years ago | 0

Answered
Stiff differential equation solvers
There are several stiff solvers. See the "Basic Solver Selection" section on this documentation page for a table indicating whic...

8 years ago | 2

| accepted

Answered
How to rotate axis of polarscatter plot?
The axes in which a polarscatter plot is located is a polaraxes. The polaraxes object has a large number of properties for contr...

8 years ago | 2

Answered
While using Cleve Moler's 'surfer' function, I keep encountering 'ogp.me' website. Why is that?
Does the page on which you're running surfer link to that website? Can you show us exactly what you mean (with a screenshot or ...

8 years ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
The left side of this line of code refers to 1 element of T3. The right side refers to a 4 element matrix. T3(a)=[1 y(a); 0 1]...

8 years ago | 7

| accepted

Answered
Get UNIX standard timestamp on MATLAB
Use posixtime.

8 years ago | 0

| accepted

Answered
2 bugs in draw digraph
The ArrowPosition property was introduced in release R2018b according to the Release Notes. The documentation for the ArrowSi...

8 years ago | 1

Answered
Why is Matlab slow with large objects in the workspace even when RAM is not limited?
Do you have the Workspace window open showing the properties of the large object? What happens if you close the Workspace window...

8 years ago | 1

Load more