Answered
Cannot get multiple outputs on matlab function
How many output arguments do you specify when you call gradientDescent? If you don't specify any, the first output gradientDesc...

7 years ago | 0

Answered
How can I fix the 'saveas' code to save pdf-files containing simulink simulation results by using 'strcat'?
What is the size of hFig? Is it a "scalar, vector, or cell array of vectors"? You can check the first two with isscalar and isve...

7 years ago | 0

Answered
How do I get MatLab to run?
Try the solutions suggested in the MathWorks Support Team answer here and if those don't resolve the problem contact Support as ...

7 years ago | 0

Answered
How can I trigger default save function?
If by "default save function" you mean the save built-in function, I'm confused by your later statement that "it pops a window f...

7 years ago | 0

| accepted

Answered
How to use a single command to deals with elements?
The documentation to which madhan ravi pointed is a good resource. Another is the free MATLAB Onramp online course that will tea...

7 years ago | 2

| accepted

Answered
opts.VariableTypes for any number of variables
opts.VariableTypes = repmat("double", 1, 25); Change the number 25 in that line of code as appropriate for your file.

7 years ago | 2

| accepted

Answered
Big data percentile calculation
See some of the tools and techniques available in MATLAB for working with Big Data, data that's too big to fit in memory. Many f...

7 years ago | 2

Answered
how to resolve varagout error
It looks like you're trying to copy and paste that code into the Command Window. That's not going to work. As the error message ...

7 years ago | 0

Answered
assign class object to array
You've told MATLAB that you want fill element 10 of the array a with the output returned by a call to the constructor with no in...

7 years ago | 0

| accepted

Answered
Error "attempt to add X to a static workspace" when execute a matlab command in automation server
temp = strcat('attrib.',char(attribName)); y2 = eval(temp); Don't do this. Whenever you see eval it's at least a little bit ...

7 years ago | 0

Answered
convert a 10x2 matrix into x,y coordinates
If you are trying to create twenty individual variables, one for each element of your 10-by-2 matrix, DON'T DO THAT. See this An...

7 years ago | 0

Answered
Plot through bottom y-limit
If you want to make a "break" in your plot, include NaN in the X and/or Y vectors. x = 0:0.25:10; y = x.^2; subplot(2, 1, 1...

7 years ago | 0

Answered
Multiple Y variables in RealTime
distance1 is not a vector, it is a matrix. If you're plotting one line in your call the plot and want to update it with the lat...

7 years ago | 0

Answered
ODE for 2 variables
Write your equations in the form M*DV = RHS where: , and M is the mass matrix. Since your second equation expands to: the ...

7 years ago | 1

Answered
Speedgoat Library Install on Matlab 2019b Prerelease
Please send questions about the Prerelease to Technical Support directly using the telephone icon in the upper-right corner of t...

7 years ago | 0

Answered
Copy-from-console bug
Please contact Technical Support directly using the telephone icon in the upper-right corner of this page and work with the Supp...

7 years ago | 0

Answered
In the function fit, what exactly is the difference between the 2 parameters MaxFunEvals & MaxIter?
If you had to walk through an unfamiliar darkened room and you had a stick, you might tap the ground in front of you, in front a...

7 years ago | 5

| accepted

Answered
Timer runs a number of times and then stops itselt. Set to
data = fscanf(serialObject); parsed = zeros(1,10); parsed = strsplit(data, ','); The middle line of that section is unnecessa...

7 years ago | 0

Answered
Anonymous reference to structures/variables?
Don't define variables with dynamic names. One alternate approach would be to create fields in a struct array dynamically. The n...

7 years ago | 0

Answered
How can I subtract the values of each two columns in a big matrix?
I'm going to make a 10-by-4 matrix of sample data consisting of integer values between 0 and 100 inclusive. A = randi([0 100], ...

7 years ago | 0

Answered
How can I access an xls file through a GUI that is outside system32/ C drive?
This video? When during this video does Doug show the "exact same steps and code" that you're copying? I skimmed it but I don't...

7 years ago | 0

| accepted

Answered
How to declare variables in a function
My guess is that you're trying to call this function like: update_table(pben, somePassword) That attempts to pass the contents...

7 years ago | 3

| accepted

Answered
Problem with size of a 0-by-1 empty matrix.
You don't actually care about the size of the neighbors vector, you care about the number of neighbors. Use @numel instead of 's...

7 years ago | 2

Answered
store path of minimum spanning tree
Use the shortestpath or shortestpathtree functions for graph and digraph objects.

7 years ago | 0

| accepted

Answered
How to overlap various polygons in a single diagram? Also how to find the global centroid for all of the plotted polygons?
If you have a vector of polyshape objects, you can plot the vector to see all the polyshape objects in the same axes. Take the u...

7 years ago | 0

Answered
How to scale/normalize values in a matrix to be between -1 and 1
If you're using release R2018a or later, use the normalize function. Specify 'range' as the method and the range to which you wa...

7 years ago | 3

Answered
How do I plot an integral of a function as a function?
This plots 200 separate scatter plots and 400 line plots (200 from plot, 200 from line) each of which consists of exactly one po...

7 years ago | 0

Answered
Is interactive ginput functionality going to be added to uifigure, in App Designer?
In general we don't comment about future releases. Please contact Technical Support using the telephone icon in the upper-right ...

7 years ago | 1

Answered
Updated to R2019a and have less toolboxes and than my R2018b version. Why?
One possibility is that you (or your IT department, or whomever installed your software) didn't install all the products for whi...

7 years ago | 0

Load more