Answered
Running a function script
See this documentation page for instructions on how to customize what gets run when you press the green triangle Run button. I b...

8 years ago | 0

Answered
Pass data directory input argument to a set of unit tests
One way to do this would be with a parameterized test, either by having your test call a function that returns the parameter val...

8 years ago | 2

Answered
concatenate inside parfor loop
See this documentation page for the answer to your question.

8 years ago | 3

Answered
Matlab only importing 1048575 rows of data
Is this a Microsoft Excel file that you're trying to import? If so your file most likely does not have 3.6 million rows of data,...

8 years ago | 0

Answered
Plotting an undirected graph gives me only unconnected dots.
It's going to be impossible to give a specific answer without seeing your nodes vectors (or a small sample of the nodes vectors....

8 years ago | 1

Answered
NO function 'replaceLayer' in neural network toolbox
The online documentation is for the most recent release, which is currently release R2018b. From the documentation page for the ...

8 years ago | 0

| accepted

Answered
Efficient creation of a matrix with defined number of ones for each column
Taking advantage of implicit expansion: A = [1 5 3 6 10 7 8 9 2 1]; B = double(A >= (1:10).')

8 years ago | 2

| accepted

Answered
How do I add shadings when overlapping polygons?
To determine if two polyshape objects overlap, use the overlaps function (introduced in release R2018a) or the intersect functio...

8 years ago | 0

Answered
char combining error: Matrix dimensions must agree. - SIMPLE SCRIPT
The + operator performs concatenation if one of the things you're "adding" together is a string array. n = 20000; u = "u2DSolu...

8 years ago | 1

Answered
How do interpolate and hold values inside a vector?
If your "NA" values are stored in the double array as NaN, use fillmissing with the 'previous' method.

8 years ago | 0

Answered
How to use mexPrintf with C++ MEX Functions
Take a look at this documentation page for one potential technique.

8 years ago | 0

| accepted

Answered
if NaN then...
Which release are you using? For release R2018b or later: if any(isnan(PMatrix), 'all') end For release R2018a or earli...

8 years ago | 6

| accepted

Answered
Can't understand why does it say "The expression to the left of the equals sign is not a valid target for an assignment."
When you use the equals sign to perform assignment, the left-hand side must be a variable or a "piece" of a variable. The follow...

8 years ago | 1

Answered
polyshapes formed by intersection of polygons/polyshapes
Try calling intersect on your polyshape objects as I suggested in my answer for one of your previous questions.

8 years ago | 0

Answered
Error in matlab MCR undefined variable nnMex
As stated in the "Fixing Callback Problems: Missing Functions" section of this documentation page: "Dependent functions can als...

8 years ago | 1

Answered
Array not returning any value when passed through a nested function
I suspect you expect this line of code to update the variable that was passed into your nested function as the second input, sin...

8 years ago | 0

Answered
How to make simpler this at 'if condition'?
Make some sample data. a = reshape(randperm(6*9), [6 9]) ii = 15; Define the cutoffs. vec = [0 4 8 12 16 20 24 28 32 36]; %...

8 years ago | 2

Answered
how can i add the two different polyshape to another varriable and then can check the overlap between them ?
The line where that error occurred is a(i) = polyin2; Why are you trying to store your polyshape as a single element of the do...

8 years ago | 1

Answered
How can I include the DocPolynom class in MATLAB?
Copy the class file code from the "DocPolynom Class Synopsis" section on this documentation page to a file named DocPolynom.m in...

8 years ago | 3

| accepted

Answered
Matlab R2018b cannot check whether builtin function 'addvars.m' exist
Instead of checking the existence of a particular file, I recommend using the verLessThan function to determine if the MATLAB se...

8 years ago | 0

Answered
collapse across dimensions of a matrix
If you're using release R2018b or later, several data analysis functions (including mean) can accept a vector of dimensions over...

8 years ago | 2

| accepted

Answered
How can i create a print dialog that allow user change some properties to print?
Just use the printdlg or printpreview functions.

8 years ago | 1

| accepted

Answered
Updating the QR decompozition/factorization after a rank 1 modification
See the Algorithms section of the documentation page for the qrupdate function. Your library likely has the text referenced.

8 years ago | 0

Answered
Parse error at '='
The = operator performs assignment. The == operator performs equality testing.

8 years ago | 0

| accepted

Answered
Round elements in a table while simultaneously having titles?
Make a sample table. t1 = array2table(rand(4, 3), ... 'VariableNames', {'var1', 'var2', 'var3'}, ... 'RowNames', {'x1...

8 years ago | 1

Answered
Initialize to Increase Efficiency of plot3 Animation in Loop
Don't call plot3 over and over, which will keep increasing the number of graphics objects present in the figure. Instead either ...

8 years ago | 0

| accepted

Answered
How to find vector of coefficient of a polynominal from roots
Use the poly function.

8 years ago | 0

Answered
Not include Web App Compiler.
According to the Release Notes that functionality was introduced in release R2018a. You will need to upgrade to use Web App Comp...

8 years ago | 1

| accepted

Answered
Missing data values with interpolation
If you're using release R2016b or later you can use the fillmissing function.

8 years ago | 2

Answered
Question about number format
However, this is not the correct answer You're assuming there is only one correct answer. That is not a valid assumption in thi...

8 years ago | 0

| accepted

Load more