Risposto
finding closest value in specific row and columm and take value intersecting these.
first thing: you confused rows and columns, you have 5 rows and 4 columns, not the other way around (at least it appears like th...

oltre 5 anni fa | 1

| accettato

Risposto
What fuction can I use for represente time as an angle?
first thing: you can calculate all your angles directly using the formula in your for loop: angles=latencies*360/interval; ...

oltre 5 anni fa | 1

| accettato

Risposto
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...

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 0

| accettato

Risposto
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...

oltre 5 anni fa | 1

| accettato

Risposto
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...

oltre 5 anni fa | 0

| accettato

Risposto
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...

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 1

| accettato

Risposto
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...

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 1

| accettato

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

oltre 5 anni fa | 0

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

oltre 5 anni fa | 0

| accettato

Risposto
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)]...

oltre 5 anni fa | 1

| accettato

Risposto
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...

oltre 5 anni fa | 1

| accettato

Risposto
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{...

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

Risposto
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 ...

oltre 5 anni fa | 1

Risposto
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

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 1

Risposto
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/...

oltre 5 anni fa | 0

| accettato

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

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 0

| accettato

Risposto
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 ...

oltre 5 anni fa | 1

| accettato

Risposto
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

oltre 5 anni fa | 0

Risposto
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...

oltre 5 anni fa | 0

Carica altro