Answered
Wait for sound to finish and then execute
Instead of calling play on your audioplayer object you should call playblocking.

5 years ago | 1

| accepted

Answered
Question about Indexing a function
That operation is logical indexing. Also see the "Indexing with Logical Values" section on this documentation page for more info...

5 years ago | 2

Answered
Won't move 2020a
Can you show us a a picture of where '"Fixed-Point Designer" is displayed'? If you're referring to the window that appears in s...

5 years ago | 0

Answered
Creation of multiple objects in same class
It depends. Is that class a handle class or a value class? If value, just call the constructor or do whatever you need to instan...

5 years ago | 1

| accepted

Answered
How can I use 'diary' with Live Scripts?
If updating to release R2021a is an option you could use the new formattedDisplayText function. See the Release Notes for more i...

5 years ago | 1

| accepted

Answered
Trying to use output values of a previously defined function for another function, can't figure it out for some reason
You can't directly plot a function handle. You can plot the values you receive from evaluating a function handle. x = 20865; %w...

5 years ago | 0

| accepted

Answered
Check if all values in cell array are 'on'
One easy way to do this is to use a string. A = {'on', 'on', 'on'}; all(A == "on")

5 years ago | 0

Answered
How to turn an adjacency matrix into a graph of cubes?
You just want to visualize the pattern? Call spy on your adjacency matrix. Alternately if you need color coding see scatter, pco...

5 years ago | 0

| accepted

Answered
MATLAB rookie help, How do i create a code to return these outputs?
You've omitted a function declaration line at the top of the file. That will turn the file from a script file (which cannot retu...

5 years ago | 0

Answered
HELP WITH MY PROJECT. PLEASE READ
If "Someone who understands the program could do this in 10 minutes." then I'm guessing the necessary skills to complete this pr...

5 years ago | 1

Answered
Why do I recieve an error?
Let's make sure you haven't written your own min.m function that shadows the built-in min function. which -all min If that doe...

5 years ago | 0

Answered
Try/Catch Block not operating as predicted. Can anyone help me fix this?!
You're assuming that the only reason the code inside the try block could error is an inability to find the file. Modify your cat...

5 years ago | 0

Answered
Change plot line style/colours for each variable and iteration of loop
See the colororder function and/or the ColorOrder and LineStyleOrder axes properties.

5 years ago | 0

| accepted

Answered
Can I use weights and bias to manually verify the feedforwardnet?
Don't forget the pre- and post-processing steps. net = feedforwardnet(10); net.inputs{1} In this case that would be removecon...

5 years ago | 0

| accepted

Answered
MATLAB seems to be remembering the variables and not the new ones
The second input to saveas needs to be a file name not a directory name.

5 years ago | 0

| accepted

Answered
first time user, need help with matrix variables?
If your x vector were: x = linspace(-pi, pi, 9) As written this would give you a 3-by-27 matrix. c = cos(x); s = sin(x); T ...

5 years ago | 0

Answered
Error with Min-Max Scaling
t = [ 1 5 6; 8 9 7; 2 4 5] t2 = normalize(t, 'range', [-1 1]) You can also specify a dimension input. t3 = normalize(t, 2, 'r...

5 years ago | 0

Answered
how to loop for a multiple variables array code?
Consider converting your data array (with the time information) into a timetable and calling retime on it to aggregate each 30 m...

5 years ago | 0

| accepted

Answered
Storing date and time with every meassurement
I'd probably use a timetable instead of a plain table. t = timetable(NaT(0, 1), [], 'VariableNames', "measurements"); n = date...

5 years ago | 0

| accepted

Answered
removevars ERROR for a table
How many variables does your timetable have and how many do you want to keep? If you only want to keep one or two, rather than r...

5 years ago | 1

Answered
How can I convert a matrix to string with arrayfun?
Use the repelem function.

5 years ago | 0

Answered
What is this code used for?
We can't say what it's used for in your application because you haven't told us anything about the context in which it is called...

5 years ago | 0

Answered
Implementation of Data and Sinus Curves maximum
It sounds like the islocalmax function may be of use to you.

5 years ago | 0

Answered
table function creating structs
Check that you haven't written your own table function or downloaded one that's taking precedence over the built-in table functi...

5 years ago | 0

| accepted

Answered
Select Folders with a certain date/time range
Use datetime arrays and date and time relational calculations. D = dir(fullfile(matlabroot, 'toolbox', 'matlab', 'demos')); D(...

5 years ago | 0

| accepted

Answered
divide a matrix based on the presence of a coefficient
Do you need these as separate variables or do you just need to process each group of dates separately? In the latter case, see t...

5 years ago | 0

Answered
Digraph with a single constrained axis
Are you trying to create some sort of horizontal flowchart? If so them perhaps using the 'layered' layout with the 'Direction' o...

5 years ago | 0

Answered
While Loop, with a user made function
From the documentation for the while keyword: "while expression, statements, end evaluates an expression, and repeats the execut...

5 years ago | 0

| accepted

Answered
Conversion to double from function_handle is not possible.
Non-scalar arrays of function handles are not allowed. Either make the function handle and use it without storing it for long-te...

5 years ago | 0

| accepted

Answered
Digraph node label threshold
Is there a way to change this threshold? No. Force labeling? Yes. D = digraph(sprand(150, 150, 0.1)); h = plot(D); % No lab...

5 years ago | 0

| accepted

Load more