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

Answered
scatter plot, stem
See the islocalmax function.

5 years ago | 0

Answered
How can i write CRC16 program? (in modbus)
See the swapbytes function.

5 years ago | 0

Answered
wordcloud Function not working!
Let's make sure you don't have a wordcloud.m file that's taking precedence over the function by that name in MATLAB. What does t...

5 years ago | 0

| accepted

Answered
Can someone double check my code for a system of differential equations? I keep getting an error.
When the first input to ode45 is a function handle the second input is the interval over which you want to solve the differentia...

5 years ago | 1

| accepted

Answered
Delete numbers that are not in both arrays
Use the intersect function a couple times. That will be easier if you define an array or a cell array of data rather than using ...

5 years ago | 0

Answered
Mean and Norm of a time series.
The x1 variable you use to calculate mx_1 and nx_1 is not the same x1 that you use in the Command Window. x1 = 1:10 m1 = mean(...

5 years ago | 0

| accepted

Answered
Matlab ignores my videoReader command
Have you read the data from the VideoReader or have you just created the object? If I open to page 23 of a 345 page long book b...

5 years ago | 0

| accepted

Answered
how to refer variable from string name
Can you do this? Yes. Should you do this? The general consensus is no. Rather than defining variables with numbered names, con...

5 years ago | 1

Answered
The if else statement does not read the other conditions
D1 = 3 Wl1 = 1.4 N1 = 15 %%interpolation for unit weight if D1 < Wl1 Is 3 less than 1.4? No, so we do not execute the body ...

5 years ago | 0

Answered
Conputation with symbolic elements
Call double (if the result doesn't contain any symbolic variables) or vpa (if it does) on the result. two = sym(2); y = (sqrt(...

5 years ago | 0

| accepted

Answered
do you know the difference between set and set_param
The set_param function is intended to set parameters of Simulink models and Simulink blocks. The set function is intended to se...

5 years ago | 0

| accepted

Answered
How to remove outlier of time series signal data by using cubic spline interpolation?
Use > and < or the isoutlier function to determine where the outliers are located. Use filloutliers specifying 'OutlierLocation...

5 years ago | 2

Load more