Answered

delelte certain string data from cell

use names(ismember(names(:,1),'Australia'),:)=[];

delelte certain string data from cell

use names(ismember(names(:,1),'Australia'),:)=[];

23 days ago | 0

Answered

how to title of subplot

call title() after plotting (after bar() ), that should work the normal way

how to title of subplot

call title() after plotting (after bar() ), that should work the normal way

23 days 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)]...

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

24 days 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...

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

24 days 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{...

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

25 days 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...

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

25 days 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...

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

26 days 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

How to erase grid line

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

26 days ago | 0

| accepted

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

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

29 days 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

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

1 month 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...

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

1 month 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/...

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

1 month ago | 0

| accepted

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

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

1 month 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 ...

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

1 month 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

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

1 month 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...

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

1 month 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...

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

1 month ago | 1

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)')]

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)')]

1 month ago | 0

Answered

Plotting surface instead of line

it you want to plot the surface then use the surf(x,y,z) command

Plotting surface instead of line

it you want to plot the surface then use the surf(x,y,z) command

1 month ago | 0

| accepted

Answered

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>

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>

1 month ago | 1

| accepted

Answered

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

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

1 month ago | 1

| accepted

Answered

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

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

1 month ago | 2

| accepted

Answered

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

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

1 month ago | 0

Answered

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

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

1 month ago | 0

| accepted

Answered

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

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

1 month ago | 0

Answered

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

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

1 month ago | 0

| accepted

Answered

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},:)=[];

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},:)=[];

1 month ago | 1

| accepted

Answered

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(:,...

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(:,...

1 month ago | 1

| accepted