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

Answered
how to call a nested function from a method
See the "Visibility of Nested Functions" section on this documentation page for an explanation of from where you can call a nest...

6 years ago | 0

Answered
How can I calculate the mean of a line and put it into a new vector?
Look at the description of the dim input argument in the documentation for the mean function. There's also a relevant example on...

6 years ago | 0

Answered
problem with sum in function
That is correct. Functions operate in their own workspaces. Variables from outside the function generally only enter a function...

6 years ago | 0

| accepted

Answered
Can I call integralCalc directly to bypass integralParseArgs?
Both those functions are private functions and are not intended to be called directly by users. As they are only accessible dire...

6 years ago | 0

| accepted

Answered
Error: File: fingerprint.m Line: 72 Column: 37 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
If you want to break a calculation across multiple lines, you must use ... at the end of the line to continue the expression to ...

6 years ago | 0

Answered
Multiple instances of matlab allowed with Individual license?
For an official answer to this licensing question, please send your question to Technical Support using the telephone icon in th...

6 years ago | 0

Answered
Trying to calculate the height but get an error
You're trying to solve for an h such that A1(h) = A2(h)? If rewrite that slightly to be in the form given in the documentation f...

6 years ago | 0

Answered
ODE system phase plane
Create an options structure using odeset. In your odeset call specify the OutputFcn option to be @odephas2, a function included ...

6 years ago | 0

Answered
Ones Function Giving Me Decimal Points
You've turned on the 'bank' display format. That displays a double or single precision array with 2 decimal places regardless of...

6 years ago | 0

| accepted

Answered
plotting a horizontal line at each data point
My first thought when I saw your picture was errorbar.

6 years ago | 0

Answered
Calling Matlab engine from Python fails
That page states "You might need administrator privileges to execute these commands." Do you have administrator privileges?

6 years ago | 0

Answered
Error - Array indices must be positive integers or logical values
Looking at a section of your code: i = 0; xi = (i-1)*xstep; if(xi>=0 && xi<=1) u(i,1) = sin(2*pi*xi); % initial condition , ...

6 years ago | 0

Answered
How do you create an m-file for the function
Follow the instructions on this documentation page. However, that's a simple enough function that if you didn't want to create a...

6 years ago | 0

Answered
array exceeds maximum array size preference.
You probably want to find an alternative to brute force to solve your problem. How many combinations are you trying to create? ...

6 years ago | 0

Answered
"MCC does not permit KEYBOARD function"
The keyboard function is classified as a "Debugging and Analysis" function, that's the category in which its documentation page ...

6 years ago | 0

| accepted

Answered
Missing processTurboFanDataTrain function in deep learning example
I believe, based on the Release Notes, that this example was introduced in release R2018a. Because of that I'm doubtful you coul...

6 years ago | 0

| accepted

Answered
The solve function in matlab isn't working.
Rather than specifying the inputs to solve as char vectors, you should specify them as symbolic equations. syms x y A = solve(...

6 years ago | 1

| accepted

Answered
Get average water flow for every 15min between 1am and 5am of each day
Read in both the water flow data and the date and time data (perhaps by reading your data in as a timetable.) Call hour on the d...

6 years ago | 0

Answered
why i can't install financial toolbox in the additional resources in matlab? when i click next step,it tell me something is wrong,please contact the technical support.
If the message told you to contact Technical Support, please contact Support using the telephone icon in the upper-right corner ...

6 years ago | 0

Answered
ODE45 - A way to determine the change from each time step or determine the last successful results
What's the mathematical form of your system of differential equations? Do they involve some sort of delay term? If so, try using...

6 years ago | 0

| accepted

Answered
More Efficient ismember Calculation
What's the most time consuming part of that line that you've identified as the bottleneck? Is it the ismember call, the indexing...

6 years ago | 0

| accepted

Answered
can I store class properties in axes UserData?
So you want to create a custom plot type, along the same idea as the spider plot? If you're using release R2019b or later, take ...

6 years ago | 0

| accepted

Answered
create vector with number of hour per years
If you need to extract and operate on each year's worth of data separately the timerange and retime functions will likely be of ...

6 years ago | 0

Load more