Answered
Requested array exceeds the maximum possible variable size.
Let's say you want to extract the two elements equal to 1 in this matrix. A = [1 2 3; 4 5 6; 7 8 1] You can do this with find ...

6 years ago | 0

| accepted

Answered
where is my fault?
The find function just tells you which elements of its input are true. It doesn't actually select if the next line of code shoul...

6 years ago | 1

Answered
Missing toolbox Parallel computing
Did you (or your school or company) purchase licenses for those two toolboxes? If you're not sure, I recommend checking with who...

6 years ago | 0

Answered
bisector method help and inputs
You haven't showed the code for your APFunction, so all we can say is that you're calling it with five input arguments and it mu...

6 years ago | 0

Answered
Using obj within function without passing it
The online documentation indicates I do not need to pass obj to the function to use it within That is incorrect. See the "Metho...

6 years ago | 0

| accepted

Answered
What does fzero take as input for the function?
then what does the function findmode take as input x? fzero will call your findmode function repeatedly with various values as ...

6 years ago | 1

| accepted

Answered
Handling Big Data in MatLab
Some of the tools and techniques described in the Large Files and Big Data category in the documentation may be of interest to y...

6 years ago | 0

| accepted

Answered
Finding the trajectory of a ball
Do not call ode45 with fball as the ODE function from within fball itself! That way lies (at best) a recursion error. Call ode45...

6 years ago | 0

| accepted

Answered
Error using tiledlayout syntax instead of subplot when referencing axes handles
Be very careful about using gca, gcf, etc. in your code. I generally only use those when I'm experimenting in the Command Window...

6 years ago | 0

| accepted

Answered
What value is 1.0000e-03 in normal numbers?
format longg x = 1.0000e-03

6 years ago | 1

Answered
How to convert a 'char' into 'double' data type without disrupting the data?
You could try adding back in the '0' that you subtracted to create DoubleC from C, but keep in mind that not all the values in I...

6 years ago | 0

Answered
Finding the position of specific value in a vector without knowing the exact number
Depending on how you're storing your data and what analysis / manipulation you want to perform on it, storing it in a timetable ...

6 years ago | 0

Answered
Remove time from datetime
Use timeofday to create a duration array containing the time since midnight for each of the datetime arrays. rightNow = datetim...

6 years ago | 0

| accepted

Answered
How to solve preallocating speed of a variable?
You start off with car an empty double array, then change it to a struct array with your first assignment in the loop. Instead I...

6 years ago | 1

Answered
How do I change the default background color of view(biograph) objects created in MATLAB?
I don't believe you can do what you ask. If you're not required to use the biograph object consider using a graph or digraph ob...

6 years ago | 1

Answered
Invalid use of operator.
int = sqrt(@(t).* (av(t))^2); That is not valid. You're not multiplying the square of av(t) by anything. int = sqrt(@(t) (av(t...

6 years ago | 0

| accepted

Answered
What is the default MathWorks recommended compiler for mex compiling C++ source files that require Intel MKL as linear algebra package?
See the page linked in the appropriate row of the "Supported Compilers" column of the table on the system requirements page. Tha...

6 years ago | 0

Answered
How to locate and link with the exact same Intel MKL that MATLAB is shipped with?
See this documentation page.

6 years ago | 0

Answered
hypercube or hyperpca not found. Not even in R2020b .why ?
Both those functions are part of Image Processing Toolbox. Check the output of the ver function to determine if you have this to...

6 years ago | 0

Answered
Object properties that automatically update but aren't Depenent
function obj = set.P(obj,pressure) if ~isempty(obj.P) error('Pressure is already set, please change pressure via s...

6 years ago | 0

| accepted

Answered
How do I convert a date time format that's (dd-MMM-yyyy hh:mm:ss) to (dd-MMM-yyyy hh)?
Do you want to change the displayed value or the stored value? dt = datetime('now') dt_display = dt; % Make a copy so dt can b...

6 years ago | 0

Answered
matlab 2021-a
In "the March timeframe". We don't give the specific release date ahead of time.

6 years ago | 1

Answered
ode45 error: must return a column vector
When you call your function at the initial time and conditions you pass into ode45 does it return a column vector? [I commented ...

6 years ago | 0

| accepted

Answered
The Simpson's 1-3 (h / 3) method in Matlab
% Ask for user input % Lower bound (a) a = input('What is your lower bound (a)?') % Upper bound (b) b = input('What is your ...

6 years ago | 0

Answered
Store a vector in one function and access it from another function in Appdesigner.
See this documentation page.

6 years ago | 0

| accepted

Answered
Dos command doesn't work through Matlab, and works OK in command window
You cannot use double quotes both to surround the command and inside the command, at least not that way. Something like this wou...

6 years ago | 0

Answered
Hello, can you help me with drawing up such a scheme, what source data is needed and in what form and how to enter them into the program (Matlab Simulink)?
Section 5 of the paper to which you linked seems to explain the meanings of most if not all of the identifiers given in that Sim...

6 years ago | 0

| accepted

Answered
Error using atan2 Inputs must be real.
Set an error breakpoint and run your code. When MATLAB stops on that line, look at the values you're passing into atan2 in the c...

6 years ago | 0

Answered
Quotes matlab please help
What layout is your keyboard setup? On my 104 key US-QWERTY the single quote character used to create a char vector is immediate...

6 years ago | 0

Load more