Answered
Undeclared function or variable.
You can check this by using the debugger: <https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html...

9 years ago | 0

Answered
Absolute Newb: How Does Licensing Work?
"Log in with a MathWorks Account" and "Use a File Installation Key". Using the method to login in your MathWorks account is ...

9 years ago | 1

Answered
Moving between the condition
A bold guess: You want to choose a number between the next smaller multiple of 20 and the value. If so: In = [68,23,78,45,...

9 years ago | 0

Answered
how to solve the expression using the loops
What about: for x=1:5 p = p + P(x,1); q = q + Q(x,1); pr = pr + P(x,1)*5^(x-1); qr = qr + Q(x,1)*5^(x...

9 years ago | 0

Answered
fft second argument function matlab
Are you talking about the built-in function |fft|? Then the 2nd argument is *not* the sampling frequency. See <https://www.mathw...

9 years ago | 0

Answered
Struggling with a main menu layout
It depends on how it should look like. Tabs are a good idea and they are not such tough. Another idea would be to create 3 diffe...

9 years ago | 0

Answered
Can not run a script
'Enable','of' This should cause an error message, because the value must be 'on' or 'off'. After this error, the GUI might s...

9 years ago | 0

Answered
Why we do defined objects are saved as unit32 in .mat files ?
how to add path permanently addpath D:\MFiles\YourFolder -end savepath Look in the documentation of |addpath|: <http...

9 years ago | 0

Answered
Parse a binary file with different number formats
The documentation explains this clearly: <https://www.mathworks.com/help/matlab/ref/fread.html doc fread> fid = fopen(File)...

9 years ago | 0

| accepted

Answered
How to change the axis location for multiple subplots ?
Because your ax.XAxisLocation = 'origin'; ax.YAxisLocation = 'origin'; concerns the same object "ax". Try this: ...

9 years ago | 0

Answered
How to solve "Inner matrix dimensions must agree." error?
The error message sounds clear. Split the command into parts to find the problem: a = Input_signal(ASK_input(n)==0); b =...

9 years ago | 0

Answered
/..oyo oiy o y
We do not have the full code and the figure to run this by out own. But you have all you need to find out, what |handles| is ins...

9 years ago | 0

Answered
Why is my vector length 419, not 400?
Use the automatic indentation in the editor to improve the readability of the code: Ctrl-A Ctrl-I Your code does not run. The...

9 years ago | 0

| accepted

Answered
Pass GUI data to another .m file/function and from that to workspace
Search in the forum for "share variables between callbacks". handles.answer = get(handles.popupmenu1, 'Value'); stores t...

9 years ago | 0

| accepted

Answered
how to optimize this nested for loop
Just some tiny modifications: b = size(data,1); F = size(data,2); LAG = zeros(b, b); for i = 1:b x = da...

9 years ago | 3

| accepted

Answered
what happens if a license expires while a script is still running?
I've seen a Matlab desktop stopped working, when the license expired during an execution, but not while the computations were ru...

9 years ago | 1

| accepted

Answered
Undefined variable "U"
Let me guess, what your question might mean: The message Undefined variable "U" is shown, when you try to run this line:...

9 years ago | 0

| accepted

Answered
two for Nested Loops
Maybe A = xlsread('average24'); % Average over blocks of 24 values: S1 = mean(reshape(A(:, 3), 24, []), 1); % ...

9 years ago | 0

Answered
Error on filter() - Subscript indices must either be positive integers or logicals
Hi Brian, did you see Walter's comment? Most likely the symbol "filter" was overwritten by a variable. Then the builtin function...

9 years ago | 1

| accepted

Answered
How can I make a GUI that plots data already calculated in another script?
Split the output to graphics from the actual calculations. If the calculations are performed in a function, using different meth...

9 years ago | 0

Answered
How I clear the memory of a GUI without closing the windows?
It depends on where the memory is consumed. Your current question does not contain any information which would allow to estimate...

9 years ago | 0

Answered
Index exceeds matrix dimensions det
You have provided very few information, such that the readers have to guess. My idea: You have defined "det" as a variable be...

9 years ago | 0

Answered
for loop ode 45 changing parameter values
Fo not include an output inside the function to be integrated. Remember that the integrator can call this function with differen...

9 years ago | 0

Answered
If A2 and B7´s content were 1 - then how to fill A3 to A6 with ones by function??
Maybe you want this: c1 = (X(:, 1) == 1); c2 = (X(:, 2) == 1); X(c2, 1) = -1; X(c1, 2) = -1; X(1, :) = max(X(1...

9 years ago | 0

| accepted

Answered
Extract rows separately from multiple files.
The most efficient way is to read all files into an array and sort the data as you want. To get a more explicit answer, pleas...

9 years ago | 0

Answered
Assigning multiple variables vectors from a cell array
Do you mean: a = cellArray{1}{1}; b = cellArray{2}{1}; c = cellArray{3}{1}; d = cellArray{4}{1}; Now a,b,c,d ar...

9 years ago | 0

Answered
Is it possible to disable or get warnings when using .* on mismatched vectors?
No. Modern Matlab versions use "auto-expanding" e.g. for the elementwise multiplication |.*| . There is no way to produce a warn...

9 years ago | 3

| accepted

Answered
Hi! Would you please help me :] the db.mat only save the last input image value. this don't give multiple images input values.
Your question concerned the saving of data. I find the |save| command here: try S = load('db.mat'); F=[F c]; ...

9 years ago | 1

| accepted

Answered
Bug with mean() on floating point vector elements
This is not a bug. Please read the documentation, if you have a problem with a command: doc mean The 2nd argument of |me...

9 years ago | 0

| accepted

Answered
How to find distance of the following node with all the remaining nodes?
A small modification of your code. temp = zeros(1, n); % pre-allocate!!! X = zeros(1, n); % pre-allocate!!! for ...

9 years ago | 0

Load more