Answered
Use MATLAB’s symbolic function to integrate the following functions:
Use the int function.

6 years ago | 0

Answered
Compute the Triple Integral
Use integral3.

6 years ago | 0

Answered
Conditional Statements & Loops
Each time you process an element of x, you're overwriting the whole of y. You want to overwrite only the element in y correspond...

6 years ago | 0

Answered
Unrecognized function in reinforcement learning toolbox
This function was introduced in Reinforcement Learning Toolbox in release R2020a according to its documentation page. Are you us...

6 years ago | 0

| accepted

Answered
Variable originally saved as a structure cannot be instantiated as an object and will be read in as a uint32
I'm guessing you are able to create and work with struct arrays, which is one of the built-in types in MATLAB. I suspect your ed...

6 years ago | 2

| accepted

Answered
help me plis im using matlab 2018a
The wavplay function was removed in release R2014a. The Release Notes recommends using audioplayer and play instead.

6 years ago | 0

Answered
How to eliminate the junk values in the index
x = [1 2 3 2 3 4 2]; locations = find(x == 2) The output of this find call has three elements (2, 4, and 7) since x contains t...

6 years ago | 0

Answered
how do I know which tool box is required for each function?
Fangjun Jiang has pointed you to the function lists in the documentation. As another approach, I recommend contacting the MathWo...

6 years ago | 0

| accepted

Answered
array and matrix multiplication condition
See the tables and the information on this documentation page for a discussion of array versus matrix operations and a list of s...

6 years ago | 0

Answered
Parse error while defining a state vector
The square bracket at the end of the first line where you define A ends that definition. The square bracket at the end of the se...

6 years ago | 0

| accepted

Answered
Relational operators == for more than 1 or 2 elements?
Use ismember.

6 years ago | 0

| accepted

Answered
Why I can not save as or print figures in Matlab 2017a
Have you written or downloaded a function named print that's taking precedence over the print function in MATLAB? Check this wit...

6 years ago | 0

Answered
yline don´t work "Undefined function or variable 'yline'." Even when using MATLAB example code.
As stated at the end of the documentation page for the yline function, that function was introduced in release R2018b. You will ...

6 years ago | 0

| accepted

Answered
How can I change hours into numbers?
You're trying to convert a number of hours into a percentage of a day? h = hours(8.5) % or hours(8)+minutes(30) d = days(h) S...

6 years ago | 0

Answered
function for categorizing numerical array by size
Use histcounts. The histogram function is similar but creates a histogram plot. histcounts just does the binning (no plot) and ...

6 years ago | 0

Answered
Unit tests fail on "even" runs, but pass on "odd" runs (alternating pass/fail)
You add a directory (or multiple directories) to your path but you never restore the path to the state it was in prior to the te...

6 years ago | 0

Answered
I can't start my MATLAB R2016b
See this Answers post.

6 years ago | 0

| accepted

Answered
Error using sym>convertChar (line 1459)
As stated in the Note at the top of the documentation page for dsolve "Support for character vector or string inputs will be rem...

6 years ago | 0

Answered
Xticks single or double values increase
Look at the last two elements of the vector you're passing into xticks. Is the last element greater than the next-to-last elemen...

6 years ago | 1

Answered
Taking the norm of every 1x3 vector inside a 60x3 data
Use the vecnorm function. A = gallery('moler', 6) normOfEachColumn = vecnorm(A) twoNormEachRow = vecnorm(A, 2, 2) checkNorm...

6 years ago | 0

Answered
ode45 change function index when something happends
Rather than changing your ODE function "on the fly" like this, you probably want to use a restart-based approach. Solve the sys...

6 years ago | 1

Answered
Confusion with interp3 and interpn
I think reading through this documentation page may be of use to you, especially the examples in the Grid Representation section...

6 years ago | 0

| accepted

Answered
Trying to package anonymous function + function parameters in a structure
Your anonymous function takes a "snapshot" of the variable myStruct as it exists when the anonymous function is taken. The only ...

6 years ago | 1

| accepted

Answered
Override subsasgn of MATLABs double?
As James Tursa stated, overriding methods for the double class is a Bad Idea, and trying to override indexing for double is a Ve...

6 years ago | 1

Answered
Count how many times an if statement executes
You want to initialize count to zero before your for loop not inside your for loop.

6 years ago | 0

| accepted

Answered
What is NumLines in function? What number to fill in? Why?
Searching the Support website for "myprocess" found only four hits, all of which were MATLAB Answers posts. None of those Answer...

6 years ago | 0

| accepted

Answered
a function insdie a switch case
You cannot define a function inside a switch-case statement as stated on this documentation page. "You cannot define a nested f...

6 years ago | 0

| accepted

Answered
Monotonicity function. Internal error?
If you're using the monotonicity function in Predictive Maintenance Toolbox, see the Algorithms section on that documentation pa...

6 years ago | 0

Answered
how can i clear these error Error: File: braintumor.m Line: 225 Column: 4 All functions in a script must be closed with an 'end'.
If any function in a function file ends with a matching end then every function must end with a matching end. You can't have som...

6 years ago | 0

Answered
In which Matlab release was the hNBCellSearch function introduced?
I suspect it was probably introduced in the same release as this example was introduced, as this is the only hit when I searched...

6 years ago | 0

| accepted

Load more