Answered
I am trying to find all the multiples of 3 below 1000. I've tried using mod but im a bit stuck.
Take a step back for a second. If I told you to solve this problem with just your brain and perhaps a piece of paper and a penci...

7 years ago | 0

Answered
Correct evaluation of a logical statement, incorrect result?
As Dennis suggested, you should use logical indexing. But as for why this behaves the way it does: For each element in the matr...

7 years ago | 1

Answered
Vector loop over multiple object handles inside a set function
No for loop is required. See the "Set Line Style to Different Value for Multiple Lines" and "Set Different Values for Multiple P...

7 years ago | 1

| accepted

Answered
where to find resizeImage2D ?
It is a function in the nnet.internal.cnnhost package directory. Its name is not resizeImage2D but nnet.internal.cnnhost.resizeI...

7 years ago | 0

| accepted

Answered
The mean in the accumarray exceeds the maximum value in the array, which it shouldn't.
I am not able to reproduce this behavior on my Windows machine running release R2018b. Can you show the result of this code? rn...

8 years ago | 0

Answered
Undefined function 'snapshot' for input arguments of type 'char'.
The documentation lists 47 hits for functions with "snapshot" in the name (or perhaps just on their documentation page) in MathW...

8 years ago | 0

| accepted

Answered
matlab out of memory error when multiplying 2 matrix
With the specified dimensions, the result of X'*X will be size [120744 120744]. Assuming X is a real, full, double matrix that w...

8 years ago | 1

Answered
How can I default an array to show either 0's or 1's?
If you're using release R2018a or later use the normalize function to normalize your data.

8 years ago | 0

Answered
Trapezium Rule example won't work?
You're combining a function declaration and a function call. Call your function something other than trapz because that's alrea...

8 years ago | 0

| accepted

Answered
storing multiple objects derived from two different classes in one array
If those objects are in the same class hierarchy, you could make the hierarchy heterogeneous.

8 years ago | 2

Answered
selective hold on plot
What do you mean when you say you want to '"hold on" to y1'? Do you want to do something like a zero order hold on the data? Or ...

8 years ago | 0

Answered
Undefined operator ':' for input arguments of type 'parallel.Pool'
I suspect you expected parpool to return the number of workers in the pool or something similar. It doesn't. It returns an objec...

8 years ago | 0

| accepted

Answered
I have a 32 bit computer with vista operating system
According to the system requirements page the last release that supported 32-bit Windows was release R2015b and the last release...

8 years ago | 0

Answered
change linestyleorder like colororder (without a loop)
From the documentation: "Axes increments the line style only after using all of the colors in the ColorOrder property. It then ...

8 years ago | 0

Answered
How to have a sum of 2d fields in a 3d matrix so the time dimension remains?
If you're using release R2018b or later, both sum and mean (your code used sum but your description of your goal indicated you'r...

8 years ago | 1

Answered
What is causing dimension 1 to vary?
What in your code guarantees that idx is a scalar? Could it be a vector? No, given your waypoints matrix it can't. Could it be...

8 years ago | 0

Answered
A more modern but still flexible equivalent evalin and eval?
It sounds like you want to turn a piece of text into a function you can evaluate. If so, consider the str2func function which wi...

8 years ago | 0

Answered
Error in variables being unset and unused
function endarea = calcend(rad) calcend = pi*rad^2 end Your function is declared to return the contents of the variable named...

8 years ago | 0

| accepted

Answered
function solve in matlab 2018
If the error you receive is that the solve function is an undefined function or variable, check the output of the ver function t...

8 years ago | 0

Answered
How to make a graph of quotes?
Are you looking for something like wordcloud from Text Analytics Toolbox?

8 years ago | 0

| accepted

Answered
Time-dependent parameter in ode solver
See the "ODE with Time-Dependent Terms" example on the documentation page for ode45 for one technique.

8 years ago | 0

Answered
linprog cannot find solution
By the way you described the lb and ub inputs, both your lower and upper bounds are 0. That means the only possible feasible sol...

8 years ago | 1

Answered
How to create a symmetric histogram
Okay, now I see the problem you're experiencing, I think. Since this is a bit more technical I'm moving this from the comments o...

8 years ago | 0

| accepted

Answered
Is there a way to use relational operators with tables
That is correct, the relational operators are not defined for table arrays. A table array can contain a mix of numeric and non-n...

8 years ago | 0

Answered
Subtracting two raster images with uint16 type data returns zero value for negative values how to resolve the issue
You can use imabsdiff from Image Processing Toolbox, compute the max of (A-B) and (B-A), or identify elements where A > B then c...

8 years ago | 0

Answered
Not found in current @folder
From the messages you posted add_ref is a method of the gds_structure class rather than a plain old function. That imposes some ...

8 years ago | 0

Answered
Unexpected MATLAB Expression on function
You have a couple problems with your code. The first, as the error messages cites, is with your function definition. In a funct...

8 years ago | 0

Answered
Float 32 bit number from 2 modbus registers !
What is the class of v1 and v2 in your code above? If they're 16-bit or 32-bit integers, take a look at the typecast and swapby...

8 years ago | 0

Answered
how to generate a matrix with 2 columns and changeable number of rows
Call the meshgrid function and reshape the outputs from meshgrid into column vectors.

8 years ago | 0

Load more