Question

Compute gene ontology similarity between 2 genes

Hi, I want to calculate gene ontology pairwise similarity between 2 genes. Is there a way to do this using MATLAB? Thanks

3 months ago | 0 answers | 0

Answered

how can i select a random number from a column of a matrix? and then how to find the location of that number?

If you use a random number to index the row you want to extract, you will already have what you need: A = randi(10,[4,3]); ...

how can i select a random number from a column of a matrix? and then how to find the location of that number?

If you use a random number to index the row you want to extract, you will already have what you need: A = randi(10,[4,3]); ...

4 months ago | 0

Answered

how can i use support vector machine (SVM) to classify students

https://www.mathworks.com/help/stats/classificationsvm.html Does this help? If not, you can post here the data (or a part of ...

how can i use support vector machine (SVM) to classify students

https://www.mathworks.com/help/stats/classificationsvm.html Does this help? If not, you can post here the data (or a part of ...

4 months ago | 0

Submitted

iddoweiner/Coding-Sequence-optimization-for-Chlamydomonas-reinhardtii

Coding Sequence optimization for Chlamydomonas reinhardtii

4 months ago | 2 downloads |

Question

Finding the inflection point of a sigmoid function

Hi, here's my function: % define params p1 = 0.0389; p2 = 1.9158; p3 = 162.4272; p4 = 0.012; % simulate ...

7 months ago | 2 answers | 0

Question

How to best fit a curve to my data

Hi, I have 2 variables (attached in the file myXY.mat) to which I would like to fit a curve. I'm expecting to receive someth...

8 months ago | 2 answers | 1

Question

Is there a function that parses an .sql file?

Is there a function that parses an .sql file?

10 months ago | 0 answers | 0

Question

My code creates files, uses them and then deletes them. The deletion part does not always work

Hi, My code is built in a way that data files and folders are created, used and then deleted. I've noticed that every now...

10 months ago | 2 answers | 0

Answered

How do I access properties of objects embedded inside another object organized in an array?

% build an empty struct A = struct; A.outer = struct; % either fill it for i = 1:10 for j = 1:3 ...

How do I access properties of objects embedded inside another object organized in an array?

% build an empty struct A = struct; A.outer = struct; % either fill it for i = 1:10 for j = 1:3 ...

1 year ago | 0

Question

I sometimes answer forum questions but get no feedback. Is there any way for me to mark these questions so that experienced users with high privileges can take a look at them and either accept the answer or comment on it if it needs improvement?

I ask because my feeling is that sometimes good answers are provided but the original user who asked the question "disappears", ...

1 year ago | 0 answers | 0

Answered

Cut out piece of matrix

T1 = readtable('Dem1.txt'); T2 = readtable('Dem2.txt'); Glacier_yes = find(T2.(5)); T1 = T1(Glacier_yes,:); now T1...

Cut out piece of matrix

T1 = readtable('Dem1.txt'); T2 = readtable('Dem2.txt'); Glacier_yes = find(T2.(5)); T1 = T1(Glacier_yes,:); now T1...

1 year ago | 0

Answered

How do i start my code over if i'm doing data validation?

Wouldn't the sum of rows always equal the sum of cols in any matrix? See this link for discussion on determining whether a matri...

How do i start my code over if i'm doing data validation?

Wouldn't the sum of rows always equal the sum of cols in any matrix? See this link for discussion on determining whether a matri...

1 year ago | 0

Answered

How do you create a grouped boxplot with categorical variables on the x-axis.

Take a look at this, it explains how to do precisely what you want: <http://stackoverflow.com/questions/15971478/most-efficient...

How do you create a grouped boxplot with categorical variables on the x-axis.

Take a look at this, it explains how to do precisely what you want: <http://stackoverflow.com/questions/15971478/most-efficient...

1 year ago | 0

Answered

How to make a nested FOR loop of distance between points?

Hi, you had some unnecessary bits of code there that made it complicated to follow. Here's a shorter code that does what you ask...

How to make a nested FOR loop of distance between points?

Hi, you had some unnecessary bits of code there that made it complicated to follow. Here's a shorter code that does what you ask...

1 year ago | 0

| accepted

Answered

How to plot matrice in a figure ?

How do you want to display this data? Here's 1 idea: pair1 = [0 1]; pair2 = [0.5 0.7]; % ... pairN = [0.1 1.5]; ...

How to plot matrice in a figure ?

How do you want to display this data? Here's 1 idea: pair1 = [0 1]; pair2 = [0.5 0.7]; % ... pairN = [0.1 1.5]; ...

1 year ago | 0

| accepted

Answered

Hi! I have a loop which gives me vectors of length=50. How can i create a loop, so it will make 5 of these vectors? This just gives me one vector on length=250. How can I make so it will be 5 vectors?

How about create a 5*50 matrix and fill it with 2 loops? data1 = rand(5); data2 = rand(50); out = zeros(5,50); fo...

Hi! I have a loop which gives me vectors of length=50. How can i create a loop, so it will make 5 of these vectors? This just gives me one vector on length=250. How can I make so it will be 5 vectors?

How about create a 5*50 matrix and fill it with 2 loops? data1 = rand(5); data2 = rand(50); out = zeros(5,50); fo...

1 year ago | 0

Answered

Determine whether a column in a Table contains time data

Please define "time vector" - do you mean that the numbers should simply be monotonically increasing? or do you also have a cert...

Determine whether a column in a Table contains time data

Please define "time vector" - do you mean that the numbers should simply be monotonically increasing? or do you also have a cert...

1 year ago | 0

Answered

How can I extract a profile from a surface?

Hi Leonardo, I hope I understood your question properly... Here's my suggestion (I worked with small made-up data): data = ...

How can I extract a profile from a surface?

Hi Leonardo, I hope I understood your question properly... Here's my suggestion (I worked with small made-up data): data = ...

1 year ago | 0

Answered

can anyone tell me how to create table in matlab?

There's great documentation for these kinds of stuff (this is one of the virtues of MATLAB): <https://www.mathworks.com/hel...

can anyone tell me how to create table in matlab?

There's great documentation for these kinds of stuff (this is one of the virtues of MATLAB): <https://www.mathworks.com/hel...

1 year ago | 0

Answered

How can I remove websites' links from a text?

Dario, this really depends on what your data looks like. BUT I made an assumption regarding what your text might look like, plea...

How can I remove websites' links from a text?

Dario, this really depends on what your data looks like. BUT I made an assumption regarding what your text might look like, plea...

1 year ago | 0

Answered

Vertically overlapping 'stacked' bars

Philip, I think I understand - you insist on having your bars stacked, but when you do so with negative values, this "hides" som...

Vertically overlapping 'stacked' bars

Philip, I think I understand - you insist on having your bars stacked, but when you do so with negative values, this "hides" som...

1 year ago | 0

Answered

how can i write a function with a range of values for example speed between 100 and 150.

I agree with Jhon, more specific details could help understanding the problem.. But 1 possibility would be throwing an error ...

how can i write a function with a range of values for example speed between 100 and 150.

I agree with Jhon, more specific details could help understanding the problem.. But 1 possibility would be throwing an error ...

1 year ago | 0

Answered

Vertically overlapping 'stacked' bars

Hope I understood correctly.. Try this: a = rand(5,1); b = -1 * rand(5,1); data = [a b]; bar(data) legend('posi...

Vertically overlapping 'stacked' bars

Hope I understood correctly.. Try this: a = rand(5,1); b = -1 * rand(5,1); data = [a b]; bar(data) legend('posi...

1 year ago | 0

Answered

Storing Outputs from a Nested Loop

By initiating an empty array and then filling it with the looping indices: c = nan(10,10); for a = 1:10 for b= 1:10...

Storing Outputs from a Nested Loop

By initiating an empty array and then filling it with the looping indices: c = nan(10,10); for a = 1:10 for b= 1:10...

1 year ago | 1

| accepted

Answered

Run a section of code, pause, close figures and proceed to next section

Have you tried running sections (mark a section by starting it with %%+enter) separately with ctrl+enter? then you can plant:...

Run a section of code, pause, close figures and proceed to next section

Have you tried running sections (mark a section by starting it with %%+enter) separately with ctrl+enter? then you can plant:...

1 year ago | 1

Answered

Remove specific items from legended

yeah, check this out: <https://www.mathworks.com/matlabcentral/answers/406-how-do-i-skip-items-in-a-legend Link>

Remove specific items from legended

yeah, check this out: <https://www.mathworks.com/matlabcentral/answers/406-how-do-i-skip-items-in-a-legend Link>

1 year ago | 1

| accepted

Answered

How can i change the values of parameter E1 to 1 then 50 and lastly 100 and plot a single graph that include three lines for three inputs of E1 in same graph. I need to draw a comparison

not sure exactly what you need, try this for general inspiration: E1 = [1,10,100]; xdata = 1:3; for i = 1:3 sc...

How can i change the values of parameter E1 to 1 then 50 and lastly 100 and plot a single graph that include three lines for three inputs of E1 in same graph. I need to draw a comparison

not sure exactly what you need, try this for general inspiration: E1 = [1,10,100]; xdata = 1:3; for i = 1:3 sc...

1 year ago | 0

Answered

Performing calculation across large data set

a = rand(10,2); %change this to your data out = nan(length(a)); for i = 1:(length(a)) out(i,1) = abs(mean([a(i,1)...

Performing calculation across large data set

a = rand(10,2); %change this to your data out = nan(length(a)); for i = 1:(length(a)) out(i,1) = abs(mean([a(i,1)...

1 year ago | 0

Answered

Plot and bar graphs with independent axis

Here's a trick for doing precisely what you are looking for, run the example: data1 = randi([0,100],100,1); %for plot() ...

Plot and bar graphs with independent axis

Here's a trick for doing precisely what you are looking for, run the example: data1 = randi([0,100],100,1); %for plot() ...

1 year ago | 0

Answered

how can i patch a circle in the origin of the axis?

See my initial answer, I posted it as a comment by mistake: rad = 10; %this is the radius (change it if you like) an...

how can i patch a circle in the origin of the axis?

See my initial answer, I posted it as a comment by mistake: rad = 10; %this is the radius (change it if you like) an...

1 year ago | 0