Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

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

4 years ago | 0

Answered
how to title of subplot
call title() after plotting (after bar() ), that should work the normal way

4 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

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

4 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 0

| accepted

Answered
Denoising the sinusoidal signal
use dataOut = filter(dee,xn)

4 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 4

Answered
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 years ago | 0

Load more