Answered
How can I fill the intersection of three graph?
You did not mention which the X-position of the vertical lines is defined. But then the procedure is straight: Determine the ...

9 years ago | 1

Answered
Does audiowrite have an anti-aliasing filter?
No, |audiowrite| does not modify the data. Otherwise you would find this detail in the docs. Consider that something else goes w...

9 years ago | 0

Answered
What is the most recent release of MATLAB someone can get if the license expired Sept 30, 2016?
You can login to your account and try to download the wanted version: <https://www.mathworks.com/downloads/web_downloads/select_...

9 years ago | 0

Answered
Vectorization recursive vector operation
Do not overestimate a vectorization. n = 100000; tic p = 1; for i = 1:n-1 p(i+1) = 1.001 * p(i); end to...

9 years ago | 3

Answered
How do I make the loop run more than once?
A = [8, -3, 0, 2; -9, 4, 5, -7; 6, -2, 2, 4; 5, -1, 7, 10]; for n = 1:5 [Q, R] = qr(A); A = R * Q; % not B ...

9 years ago | 0

Answered
How can I deal with the large dimension array effectively ?
If you create an 8 dimensional array with lengths of about 30, you need 5248.8 GB RAM, when you use doubles. I have the feeling,...

9 years ago | 2

Answered
save the date by gui
Did you read the documentation of |uicalendar|? See the <https://www.mathworks.com/help/finance/uicalendar.html#examples example...

9 years ago | 0

| accepted

Answered
how is it possible to remove all the cells??
Do not use |clear all|, because it does not only clear variables, but removed all loaded functions from the memory also. reloadi...

9 years ago | 0

Answered
circshift columns and rows with different shifting units
A vectorization would not be very efficient: Instead of creating the output directly, you'd have to create an index matrix in ad...

9 years ago | 2

| accepted

Answered
Inverse of filter function
This is not possible. Remember that filtering destroys the original information. If you e.g. remove the high frequency noise fro...

9 years ago | 0

Answered
"Findpeaks" function doesn't work
|findpeaks| belongs to the signal processing toolbox. If you do not have a license for this toolbox, you cannot run this command...

9 years ago | 2

| accepted

Answered
Creating log file for Matlab compiler's created executable
Do you mean: filename = ['mylogfile_', datestr(clock,30), '.log']; mcc('-R', '-logfile', filename) ?

9 years ago | 0

Answered
How can i redistribute randomly the numbers in a matrix?
X = rand(2, 3) % Test data n = numel(X); Y = reshape(X(randperm(n, n)), size(X))

9 years ago | 0

Answered
Shuffling elements within the rows of a matrix
See <https://www.mathworks.com/matlabcentral/fileexchange/27076-shuffle>: A = randi(1000, 3,4); A1 = Shuffle(A, 1); ...

9 years ago | 0

Answered
Alternate method for bin2dec function
You can create a lean version of |dec2bin|: function x = myBin2Dec(s) % Lean version of Matlab's BIN2DEC, see: help bin2...

9 years ago | 1

| accepted

Answered
reset button gui matlab
You can do this, by adding a button to your GUI which triggers a reset of the values in its callback. Sorry for this trivial ...

9 years ago | 0

Answered
Matlab's profiler does not show anything
What appears, if you pull the horizontal scrollbar to the left?

9 years ago | 0

Answered
what is wrong with my script?
"circle" is a reserved name of a function of the RF toolbox. Use another name to avoid this problem.

9 years ago | 0

Answered
How can i convolve a unit ramp and unit step signal without using the 'conv' code ?
It is not exactly "there seems to be a problem", but you get a real error message. Then please post it completely instead of let...

9 years ago | 0

Answered
HOW TO READ MULTIPLE IMAGES IN GUI
I'm not sure what exactly is your question. I see this part of the code: global im im2 [path,user_cance]=imgetfile()...

9 years ago | 0

| accepted

Answered
Matlab GUI: how to print slider value to workspace
Using the base workspace to collect data is a bad idea. It suffers from the same problems as global variables (ask a search engi...

9 years ago | 0

| accepted

Answered
How to upload image using push button?
Seriously? :-) [FileName, PathName] = uigetfile({'*.bmp,*.jpg'},'Select a image file'); axes(handles.axes1); imshow(...

9 years ago | 1

| accepted

Answered
Forward difference gradient vector in multiple dimensions
h = 0.005; f = @(x) x(1).^2 + x(2).^2 dfdx1 = @(x) (f([x(1) + h, x(2)]) - f(x)) / h dfdx2 = @(x) (f([x(1), x(2) + h...

9 years ago | 0

Answered
Why isn't addition working for this equation
You do not explain how you come to the statement, that L1+L2+L3 is "completely wrong" and even smaller than L1+L2. I cannot obse...

9 years ago | 0

Answered
How can i vectorize the for loop in this code? is there any solution to calculate a matrix having both the variable indice?
for j = 2:Nt+1 u(2:xn,j) = u(2:xn,j-1) + mu * (u(3:xn+1,j-1) - 2*u(2:xn,j-1) + u(1:xn-1,j-1)); end The loop takes 0...

9 years ago | 1

Answered
addpath not working - fopen problem?
Did you create the two function "fopen.m" and "input.m" in the current folder or another folder in the Matlab path? If so, why d...

9 years ago | 0

Answered
Can't set breakpoints on changed m-file
When you have any breakpoints in the code, Matlab runs in debug mode. As a side-effect this disables the JIT acceleration and th...

9 years ago | 1

| accepted

Answered
How to convert from cell with letters to double?
v = {'x1', 'x2', 'x3', 'x4'}; d = sscanf(sprintf('%s ', v{:}), 'x%d '); Or d = str2double(strrep(v, 'x', ''))

9 years ago | 0

Answered
When I try combining channels for RGB compressed image, the Image coloring if "off" and somewhat "yellow-ish"
Your code contain 3 almost equal sections. Such redundancies are prone to bugs, because it is confusing to edit them. Prefer to ...

9 years ago | 2

| accepted

Answered
default subplot width sizing ('OuterPosition') unequal
The OuterPosition and Position influence each other. For the OuterPosition the sizes of the axes and tick labels matter. If 3 su...

9 years ago | 0

Load more