Answered
error while opening a .m file
The open.m file in that directory is taking precedence over the function included in MATLAB. Rename your open.m.

5 years ago | 0

Answered
how does Matlab choose or decide step size of ode45?
People who are interested in understanding more about the ODE solvers in MATLAB may find the chapter on ODEs in Cleve's Numerica...

5 years ago | 0

Answered
Formula to MATLAB code
See the integral function.

5 years ago | 0

Answered
How can I generate a "histogram", which shows the relative frequencies depending on the angle as "vectors" in polar coordinates?
Take a look at the polarhistogram function. You are likely going to want to set the 'Normalization' name-value pair argument to ...

5 years ago | 1

Answered
Deployed App from App Designer cannot call function
Is there a way to facilitate this, i.e. to call a function that was created on-the-fly? No. From the documentation "MATLAB Runt...

5 years ago | 1

| accepted

Answered
How to avoid the dot operator when accessing property inside class method
You don't, at least not the way you're asking. Suppose you had a different method of your Robot class: function y = battle(a, ...

5 years ago | 0

| accepted

Answered
Too many output arguments using histogram function
The histogram function's documentation page states that it returns at most one output argument. I think what you're looking for...

5 years ago | 1

Answered
Function that returns information about other functions
You're not going to be able to do what you described, at least not without a ton of work and a lot of restricting what your func...

5 years ago | 2

Answered
Using datenum to calculate acceleration
Using datetime directly outputs a "duration" type variable, which I can't use to divide into Vdiff. That's true, but you don't...

5 years ago | 0

Answered
Deleted files generated with matlab keep occupying space in the hard drive and I can't locate them
Is your recycling preference set to delete or to move to the Recycle Bin / Trash / etc.? See the recycle function for more infor...

5 years ago | 0

Answered
MATLAB code error verification
You're asking for an element of an array in a column that doesn't exist in that array. Consider a 4-by-4 matrix: A = magic(4) ...

5 years ago | 0

Answered
Using accumarray with nested inline function
@PRA_GetNetLoss( flag, loss) This is not syntacticallly valid in MATLAB. Make this an anonymous function like you did with loc...

5 years ago | 0

| accepted

Answered
How to retrieve the output from an executable file generated by MATLAB compiler on the windows command line
As stated on this documentation page "You cannot return values from your standalone application to the user. The only way to ret...

5 years ago | 0

| accepted

Answered
Array formation and parentheses-style indexing with objects of class 'nodeClass' is not allowed. Use objects of class 'nodeClass' only as scalars or use a cell array.
The helperPacketizedModemNode class used in, among other places, this example specifically disallows being stored as a non-scala...

5 years ago | 0

Answered
Accessing a new toolbox
Looking at the main documentation page for Signal Processing Toolbox it does not appear this product contains any Simulink block...

5 years ago | 0

Answered
Stand alone executable using mlapp file
Are you trying to create a standalone application using MATLAB Compiler or are you trying to create C or C++ code using MATLAB C...

5 years ago | 0

Answered
How to normalize vector to unit length
The normalize and vecnorm functions may also be of use to you.

5 years ago | 0

Answered
Finding Coordinates of Multiple Contours
Why create the contours one at a time? Why not pass a vector of contour levels to the contour function and either parse the Cont...

5 years ago | 0

Answered
datetime conversion lose nanoseconds
What Format did you use when you assigned the datetime in the first row of t? Was it one that did not include the nanosecond inf...

5 years ago | 0

Answered
Direct access to the elements of a vector of anonymous functions
f = @(x) x.^2; getElementOf = @(vec, n) vec(n); y = getElementOf(f(1:10), 5) % 25

5 years ago | 0

Answered
Apps comiler in Mac version of Matlab
If you're generating a standalone application using MATLAB Compiler, your files are turned into a deployable archive that is enc...

5 years ago | 0

Answered
Equivalent of c++'s NULL or python' s None in MATLAB
In addition to what James and Walter have written, if you're writing your own class and want to be able to indicate that some el...

5 years ago | 1

Answered
List of the blocks showing their symbol, name and short description. Like a quick reference or "cheat sheet"?
There are, according to the documentation as it currently stands, 3,083 blocks across MathWorks products. Chapter 1 of the Simu...

5 years ago | 0

Answered
I want to normalize just one column, how do i do that ?
format shortg % Changing the display format to make the normalized matrix look nicer M = magic(6) M(:, 4) = normalize(M(:, 4))...

5 years ago | 0

| accepted

Answered
How to include the value of a function into a variable?
Can you do this? Yes. Should you do this? The general consensus is no.

5 years ago | 0

Answered
How to speed up the "filling" of a Matrix with another array?
Try using the blkdiag function, potentially with a comma-separated list. timeit(@() blkdiag(1:2, 3:4, 5:6, 7:8)) C = {1:2, 3:4...

5 years ago | 2

| accepted

Answered
How to find all the edges connecting a specific node with other nodes?
Let's take a sample undirected graph. G = graph(bucky); What nodes are connected to node 51? N = neighbors(G, 51) Let's plot...

5 years ago | 1

Answered
Converting a function into an operator
I wonder if the author of the package (whatever includes gpols_evaluate) that you're using only recognizes a subset of operation...

5 years ago | 1

Answered
Unable to get trial version of curve fitting toolbox from matlab add-on explorer
I recommend you first contact your license administrator (probably someone in your IT department) as suggested in the message in...

5 years ago | 0

Answered
Efficient way to build a matrix
Take advantage of implicit expansion. IndexSunrise = [12 45 93 141 194 7000] offsets = (-6:0).' values = IndexSunrise + offse...

5 years ago | 1

Load more