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

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
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; ...

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

Beantwortet
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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 1

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

| akzeptiert

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

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
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

mehr als 5 Jahre vor | 0

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

mehr als 5 Jahre vor | 0

Mehr laden