Answered
frprintf into a file with adding the symbol for Single quote
fprintf('There''s two main ways to print a single quote') fprintf('Two single quotes '''' in a char format specifier prints a s...

5 years ago | 0

| accepted

Answered
Out of memory- infinite recursion error
Let's say I call cicelyscode with an input argument. cicelyscode([0 1]) This will create a figure then start the for loop to i...

5 years ago | 0

Answered
Acces data at given timestamp in a timetable
If you know it's in there exactly use ==. If you think there's a close match but maybe not exactly the same times I would create...

5 years ago | 0

Answered
Matlab licensing on virtual machines
I advise you to contact the Sales department and discuss your planned system configuration with them. They can work with you to ...

5 years ago | 0

Answered
Please help with unexpected outputs from symbolic expressions.
phi_1 = (1 + sqrt(sym(5)))/5 This performs the sqrt call first on a sym object representing to generate a sym result. The addi...

5 years ago | 0

| accepted

Answered
No more input arguements
Your function is defined to use an input argument. function in = localResetFcn1(in) You reference that input argument in your ...

5 years ago | 0

Answered
Matrix with no consecutive nearest neighbours
For a 3-by-3 assuming you mean the numbers from 0 to 8 or 1 to 9 the answer is no. The center element is 8-connected to all the ...

5 years ago | 0

Answered
Error using reshape Number of elements must not change. Use [] as one of the size inputs to automatically calculate the appropriate size for that dimension.
Set an error breakpoint and run your code. When you reach the line where you call reshape confirm that obj.D(1, w, :) is the siz...

5 years ago | 0

| accepted

Answered
Matlab ignoring pathdef updates
You wrote "The data acquisition toolbox disappears." Does that mean that calling functions in that toolbox don't work or does it...

5 years ago | 0

Answered
Finding corresponding values between array
I'm not certain I understand your question. Let's take a concrete example. Can you tell us what the answer you'd want to receive...

5 years ago | 0

| accepted

Answered
How does one call the constructor of a subclass, from a script which only knows about the superclass?
Each constructor can take one of two things: the arguments to build a new individual, or an array of individuals (usually two), ...

5 years ago | 0

Answered
How to do Randi with letters
There's no need for the first loop since randi can create a vector of values. r = randi([1000,9999],1,4) Since you're using a ...

5 years ago | 1

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

Load more