Beantwortet
FFT example Syntax what does it means P1(2:end-1) = 2*P1(2:end-1); ?
P1(2:end-1)= 2*P1(2:end-1) means that all values of the spectrum get doubled because of the conversion from two sided spectru...

mehr als 5 Jahre vor | 4

Beantwortet
How to programming the matrix of mn ?
you could e.g. use the kronecker product like [kron((1:2:18)',ones(4,1)) kron(ones(numel(1:2:18),1),(1:2:7)')]

mehr als 5 Jahre vor | 0

Beantwortet
Plotting surface instead of line
it you want to plot the surface then use the surf(x,y,z) command

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Audio processing: Writing a pitch shifting echo effect
have a look into the shiftPitch() function, you can find it here <https://de.mathworks.com/help/audio/ref/shiftpitch.html>

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
Programmatically ejecting an external hard drive
you can combine matlab's system() function with the answer of <https://superuser.com/questions/1547316/eject-connected-extern...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
Create listener for changes in position of a figure window
is this the same subject as in https://de.mathworks.com/matlabcentral/answers/391084-continuous-tracking-of-locationchanged-even...

mehr als 5 Jahre vor | 2

| akzeptiert

Beantwortet
The Convolution Theorem in 2D
i suggest you have a look onto file exchange, there is an example called 2d convolution theorem https://de.mathworks.com/matl...

mehr als 5 Jahre vor | 0

Beantwortet
2d fft for many images
it looks like the correct way to conpute the 2d spectrum, also the removal of the dc component is correct. the questions if it i...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How to exclude specific rows form multiple separate tables in the workspace and than merge them?
assuming you have 15 tables, each is a 400x3 table with company names as row names and score type as column names you can remove...

mehr als 5 Jahre vor | 0

Beantwortet
How do we make a plot of scatter3 with data shown on each panel (x-y,x-z,y-z)
you could use scatter3 four times, first you plot the black colored dots and with the three other scatter commands you plot the ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
removing bad data from table
for an array use tbl(tbl(:,1)+3<=tbl(:,2),:)=[]; and for a matlab table use tbl(tbl{:,1}+3<=tbl{:,2},:)=[];

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
nX2 matrix. Random instances of 0,1,2... in column 1. Need to add all corresponding values of column 2 for each of 0,1,2... and create a matrix m X 2 where 1st column is 0,1,2.. and second column is the resultant sum of previous defined content.
dirty solution with for: tbl=zeros(191,2); for number=1:191 tbl(number,1)=number-1; tbl(number,2)=sum(data(data(:,...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
find all sequences between delimiters in an array
you could convert the array to a string or char array and then use extractBetween() which does what you want

mehr als 5 Jahre vor | 0

Beantwortet
How to remove identical pair of data from a matrix in MATLAB?
use something like unique(sort([1 2; 2 1; 3 5],2),'rows')

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
not enough input Arguments
you tried to call your function odDetect without an input argument although you need one. you have give the inage to the functio...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
linearly independent or linearly dependent.
you could use something like syms a b c; [sola,solb,solc]=solve(S{1}*a+S{2}*b+S{3}*c==v,a,b,c)

mehr als 5 Jahre vor | 0

Beantwortet
How do i turn a character array into a double cell
i think your actual problem is the way you check character arrays. for thise you have to use strcmp(chararray1,chararray2) inste...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
zero padding on several images
if you want to use padarray, then use something like currSize=size(currImg); paddedImg=padarray(currImg,(aimSize-currSiz...

mehr als 5 Jahre vor | 0

Beantwortet
Find index where condition is true, or end of matrix
you could set the last entry to the condition you are searching for and then use your find function. this way at least one index...

mehr als 5 Jahre vor | 0

Beantwortet
How to divide images from folder into 4x4 blocks
you could use mat2cell A = rand(256,256,3); % your matrix here N = 4*ones(1,64); B = mat2cell(A,N,N,3); adjusted f...

mehr als 5 Jahre vor | 0

Beantwortet
Comparing the entries of matrix in pairs
i hope i understood you correctly, first index is row index, the pair is the pair of compared column index and the last value is...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How to Convert letters to underscore
which interpreter are you using? if you want to display an underscore eg with latex interpreter use '\_' instead of '_' .

mehr als 5 Jahre vor | 0

Beantwortet
Create a script that will accept number of times user can input data. Identify if every input is either ODD or EVEN numbers. Count the number of ODD and EVEN numbers.
just use something like this: times=input('how many times') numbers=zeros(1,times); for nr=1:times numbers(nr)=input('g...

mehr als 5 Jahre vor | 0

Beantwortet
How to solve aliasing affect in signal?
the error occurs already in the creation of the two signals. how should the lowpass know how exactly you produce your signals an...

mehr als 5 Jahre vor | 0

Beantwortet
Help with Bootstrap functuon, bootfun variable
bootfun has to be empty using [ ]. then you just need the second output from bootfun [~,idx]=bootstrp(...) and idx contains n co...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How do I use matlab to plot a graph where the x,y axes do not intersect?
not elegant, but possible if i'm not mistaken: fig=figure; % amount of shift of x and y axis in normalized coordinates dx=0...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Splitting an array in non equally length sub-arrays according to a flag value contained in another array
so if your flag specifies the end of the current R1 sub part then you could write something like flaggedIdx= find(~cellfun('ise...

mehr als 5 Jahre vor | 0

Beantwortet
How to reconstruct the original signal using the detail coefficients in the discrete wavelet transform?
yes, it is possible to reconstruct using only approximation coefficients or detail coefficient. have a look into appcoeff() or d...

mehr als 5 Jahre vor | 1

Beantwortet
How to sort rows in a matrix of strings according to a specific char?
easily possible, A = ['1C3489' ; '2E1919' ; '0A8721' ; '8B1821']; sortrows(A,2) the chars can dirextly be interpreted as n...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
How can I add a legend in the end of sublot ( on the bottom of sublot ) ?\
the asiest way is to use tiledlayout instead of subplot and then setting the legend position to 'south'. if you want or have to...

mehr als 5 Jahre vor | 0

Mehr laden