답변 있음
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthe
rxLocations(:,1) is valid, but after that you give just index with (:,2) the variable is missing here, maybe it should be rxL...

4년 초과 전 | 0

답변 있음
Plotting Confidence Band on plotted regression line.
you should be able to solve your problem using polyfit and polyval function, <https://de.mathworks.com/help/matlab/ref/polyval.h...

4년 초과 전 | 0

답변 있음
Logarithmic plot of function using pchip
try interpolation in logarithmic space: Z1 = 10.^(interp1(dil2f, log10(dil2an), xi,'pchip')); or Z1 = 10.^(pchip(di...

4년 초과 전 | 0

답변 있음
How to accumulate different structs, with same fields beneath one another
i am not sure how exactly your multiple structs are saved, but if you saved them in a multidimensional struct, you can get all f...

4년 초과 전 | 0

| 수락됨

답변 있음
Shift n rows in column to next column by a grouping variable
quick and dirty example: a=(1:24)'; grpSize=4; mat=nan(numel(a),numel(a)/grpSize); mat(:,1)=a; for grpNr=1:nume...

4년 초과 전 | 1

| 수락됨

답변 있음
Edge/Boundary extraction from the image
you can e.g. convert it to grayscale and then use the edge() function. there are many parameters you can try after you got th...

4년 초과 전 | 0

| 수락됨

답변 있음
How to capture the lateral and angular position between a reference image and a shifted (and/or) turned copy of the same image using the correlation of images using matlab? What program should be used for this?
use xcorr2 for finding shifts between two images <https://de.mathworks.com/help/signal/ref/xcorr2.html#buwe7f3> if you hav...

4년 초과 전 | 0

답변 있음
How to create a biphasic rectangular pulse train?
probably something like that: fs=100000; %sampling freq in Hz pulsesPerS=5000; signalDuration=3; % in seconds amp...

4년 초과 전 | 1

| 수락됨

답변 있음
how wa can discard 75% of small coefficients after get the DCT conversion of each image block?
use the Y = prctile(block,75,'all') command to get the 75% percentile, you can then set all values smaller than this th...

4년 초과 전 | 0

답변 있음
How to Figure Phase Spectrum of a Signal?
looks good, there was a similar post in <https://de.mathworks.com/matlabcentral/answers/308872-how-can-i-determine-phase-in-fft...

4년 초과 전 | 1

| 수락됨

답변 있음
delelte certain string data from cell
use names(ismember(names(:,1),'Australia'),:)=[];

4년 초과 전 | 0

답변 있음
how to title of subplot
call title() after plotting (after bar() ), that should work the normal way

4년 초과 전 | 0

| 수락됨

답변 있음
How to remove NaN value from front part (first column) of raw matrices.
can't check your files at the moment, but it should be something like that: for fileNr=1:6 load(['S' num2str(fileNr)]...

4년 초과 전 | 1

| 수락됨

답변 있음
How can I modify figure's property inspector elements through code?
you can set the Font by specifying it in the label commands, e.g. ylabel('y-axis','FontName','This is the name of your font...

4년 초과 전 | 1

| 수락됨

답변 있음
How can I write the name of file into entry of matrices?
you can't save numbers and strings on the same matrix, if you want to do that use a cell array. to achieve this use e.g. D{...

4년 초과 전 | 0

답변 있음
How to take mean of 3D matrices without storing them
sum them up one by one, this way you have one big summing matrix and the current loaded matrix. after summing you can divide all...

4년 초과 전 | 0

답변 있음
Getting mean row vector from a cell array of row vectors of the same size
so if i understood you correctly each cell contains histogram values with 256 bins each and you want to know mean count for each...

4년 초과 전 | 0

| 수락됨

답변 있음
How to erase grid line
there are also minor grid lines. use e.g. set(gca,'xminorgrid','off') to remove the minor x grid

4년 초과 전 | 0

| 수락됨

답변 있음
How do I plot 3d graph ?
what about plot3(x,y,z) without the meshgrid?

4년 초과 전 | 0

답변 있음
Split a Number Sequence into n equal parts and then replacing the values in the matrix.
i suggest normalizing the matrix by dividing all elements through the biggest value you already have and multiply it afterwards ...

4년 초과 전 | 1

답변 있음
For loop through a cell array
if you want to do a specific operation on each cell, then have a look into the cellfun() function

4년 초과 전 | 0

답변 있음
I want to normalize just one column, how do i do that ?
use data(:,12)=data(:,12)/max(abs(data(:,12))); if your data in column 12 is not negative, then you can leave out the ab...

4년 초과 전 | 1

답변 있음
1/3 octave band from wav. file
have a look into following matlab article, it has nice examples, explanations and code <https://de.mathworks.com/help/audio/ug/...

4년 초과 전 | 0

| 수락됨

답변 있음
Denoising the sinusoidal signal
use dataOut = filter(dee,xn)

4년 초과 전 | 0

답변 있음
3D matrix pattern matching
you can use e.g. a(:,:,1)=ones(2); a(:,:,2)=2*ones(2); a(:,:,3)=[1 3; 3 1]; pattern(1,1,:)=1:3; whe...

4년 초과 전 | 0

| 수락됨

답변 있음
preallocating arrays in subscripts
if you preallocate using a script matlab just can't recognize from the outer script what happens in the inner script. thats why ...

4년 초과 전 | 1

| 수락됨

답변 있음
Normalize a Cell Array between 0 and 1 with the same scale
convert your cells to an array, scale the values and convert the array back to cells

4년 초과 전 | 0

답변 있음
size of axis numbers
if you are talking about the font size of the tick labels have a look into <https://de.mathworks.com/matlabcentral/answers/1736...

4년 초과 전 | 0

답변 있음
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...

4년 초과 전 | 4

답변 있음
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)')]

4년 초과 전 | 0

더 보기