Answered
Transfer hh:mm (Time) into "double"
Consider this technique: rightnow = datetime('now'); midnight = dateshift(rightnow, 'start', 'day'); timeSinceMidnight = righ...

7 years ago | 0

Answered
Game of Life GUI help
I would not use a large if / elseif / else / end tree. A switch / case / end statement would be a simpler approach that may be o...

7 years ago | 0

| accepted

Answered
See signature of a Javafunction in Matlab
Use the methods function with the -full option.

7 years ago | 0

| accepted

Answered
Game of Life GUI Question
Would it be easier for you to use a questdlg dialog?

7 years ago | 0

| accepted

Answered
hello, i am wondering about the Structure from Motion example that is provided on MathWorks. It says that scale factor cannot be determined. Does this mean that i cannot use this to make a 3-D object with a known real word size? What is scale factor?
If I were to show you a picture of a car (nothing else in frame; no person, no buildings, nothing) could you tell me for certain...

7 years ago | 0

| accepted

Answered
Not understanding the error, why is abs not a function!
You're trying to call abs on the audioin property of your app, which is not a number but some sort of audio importing object. Tr...

7 years ago | 2

| accepted

Answered
Detect isolated nodes from tree graph mathematically through incidence matrix or adjacency matrix or any other mathematical method?
Use your vectors of edge endpoints to build a graph. Use rmedge to remove edges from it. Compute the distances from the root nod...

7 years ago | 0

Answered
prevent _ from subscripting with suptitle
If you're using release R2018b or later, use the sgtitle function instead. subplot(2, 2, 1); subplot(2, 2, 2); subplot(2, 2, ...

7 years ago | 0

Answered
converting yyyymmdd date to matlab date number
Is that stored as a number or as text? If it is stored as a number, use datetime with the appropriate ConvertFrom option. d = 1...

7 years ago | 2

Answered
Matlab GUI steals focus at debug breakpoint
Do you have the "Automatically open files when MATLAB reaches a breakpoint" preference in the Editor/Debugger section of the Pre...

7 years ago | 0

Answered
why i can not launch MATLAB 2018b
Please contact Technical Support using the Contact Us link in the upper-right corner of this page and work with the Support staf...

7 years ago | 0

| accepted

Answered
[Warning] Why is it bad practice to set additional class properties when using a set method (prompting a warning)?
Be very careful not to get yourself into a recursive situation like the class I posted earlier this month for this Answer does. ...

7 years ago | 0

| accepted

Answered
Bar graphing extra categorical info
Try just calling histogram. First let's build some categorical data: C = ["apple"; "banana"; "cherry"; "strawberry"; "kiwi"; "w...

7 years ago | 0

Answered
R2019a iso files download
Follow the instructions in this Answer. Note the bolded text in the accepted answer as it's quite important: IMPORTANT: You mus...

7 years ago | 0

| accepted

Answered
Documented valid name-value pair argument is not recognised as parameter, for sequenceFolding and unfolding -layers
The NumOutputs property is a documented property of custom layers as of release R2019a. The online documentation is for the most...

7 years ago | 1

| accepted

Answered
Why dir function is creating additional files while creating a structure? how to ignore it?
If you're calling imread on the output of dir, you probably want to first check that the entry you're trying to read isn't a dir...

7 years ago | 0

Answered
"Conversion to function_handle from double is not possible." I don't understand what i am doing wrong..can anyone help me?Thank you in advance
The actual problem is that you define p as an anonymous function. p = @(T) ( ((R*T)./(Vm-b)) - ( (c) ./(Vm*(Vm+b)) + (b*(Vm-b)...

7 years ago | 1

Answered
Element-wise multiplication for timetables
A timetable can contain many different types of data, some of which define element-wise multiplication and some of which don't. ...

7 years ago | 0

Answered
Passing an object from a method function to another function
Nowhere in the code did you call your federal and provincial tax calculation methods. There are at least two possible solutions:...

7 years ago | 0

| accepted

Answered
unetLayers - issues when trying to run funciton in MATLAB 2018a
There's a note at the end of the documentation page for unetLayers that states that this function was "Introduced in R2018b". I...

7 years ago | 0

| accepted

Answered
Matlab on Mac OS
The System Requirements page contains not only the system requirements for the current release but also a collection of the syst...

7 years ago | 0

| accepted

Answered
i need to compare two arrays
So I think calling interp1 on each column using the 'next' method is what you're trying to do. A= [21 50 60 70; ... 60 70 80 9...

7 years ago | 0

Answered
Activation doesn't work
Try the steps given in this Answer. If they don't work, contact Technical Support using the link in Justin Ghetti's comment on t...

7 years ago | 0

Answered
Change x,y,z axes position in a 3d plot - subplot issue
for deme= 1:9 subplot(3,3,deme) hAxis = axes; You're creating a subplot axes, then immediately creating a...

7 years ago | 0

| accepted

Answered
Alternative to 'find' which won't return multiple values?
The find function allows you to request the first N or the last N non-zero elements of the input array. Those are maximum limits...

7 years ago | 0

Answered
matrix of dimension 100,000 x 100,000 x 100,000
You can try contacting Technical Support using the Contact Us link in the upper-right corner of this page, but they'll likely gi...

7 years ago | 0

Answered
SYMS expression not being replaced with values
Do any of your expressions involve division by 0 if you substitute lambda = 0? Running your code in the Live Editor, I don't bel...

7 years ago | 0

Answered
Check if element in array are square of each other
I would probably do this using some subset of the ismember, any, sum, all, and/or isequal functions. Read through the help text ...

7 years ago | 2

Answered
Vectors of the sums for an array of arbitrary dimensions.
I have overcomplicated a relatively simple problem, which essentially boils down to summing over all dimensions of the array wi...

7 years ago | 0

| accepted

Answered
Is there a good pattern to combine unit testing and performance testing?
Generally, a performance test class that subclasses from matlab.perftest.TestCase is also a unit test, since the performance tes...

7 years ago | 0

Load more