A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 13 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

plus de 13 ans il y a

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

plus de 13 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

plus de 13 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

plus de 13 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 13 ans il y a

Réponse apportée
help with decimal,hexa,etc converter.
str = dec2base(yourBase10Number, newBase)

plus de 13 ans il y a | 0

Réponse apportée
Help 3D plotting in matlab
And more options here: http://www.mathworks.com/help/matlab/surface-and-mesh-plots-1.html

plus de 13 ans il y a | 0

Réponse apportée
how to read or write a file according to its absolute path
I don't see any problem. I'm sure every Matlab function can deal with local files as well as with absolute paths. This may he...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Convert a 3D image array into a cell array
Try this: blank = true(1,p); for k = 1:p if any(M(:,:,k)) blank(k) = false; end end where M is your...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how do i solve for the unknown variable
If you have the vectors x and y e.g. x = 0.5 * rand(10, 1); y = 0.5 * rand(10, 1); Then the z is simply z = s...

plus de 13 ans il y a | 1

Réponse apportée
Problem using RESHAPE function
The problem is in the text file you try to import. Line 10 (2 24652 003.9626 209.9743 7275563 179.0821 184.3511 02.2789937100...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
prevent function from displaying output
f = delet;

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
BioMap bug (bioinformatics toolbox)
Probably I should close this question... The bug was fixed in release 2012b. The support team sent me a dll file which fixes ...

plus de 13 ans il y a | 0

| A accepté

Question


how to create a circular heat map
Hi, Can you give me some hints about how I can start generating a circular heat map like this: http://www.eurekalert.org/mul...

plus de 13 ans il y a | 2 réponses | 0

2

réponses

Question


Can I plot rectangles without rescalling axis limits?
Hi, I try to plot a function and to mark some locations using |rectangle|. I use pan xon to be able to pan, and the y...

plus de 13 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
date for release of Matlab 2012b general release
My guess: tomorrow, Sep. 4, 2012...

plus de 13 ans il y a | 1

A résolu


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

plus de 13 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 13 ans il y a

A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

plus de 13 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 13 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 13 ans il y a

Question


pan cancels WindowKeyPressFcn callback...
Hi, I noticed that after using the |pan| function, |WindowKeyPressFcn| callback doesn't work anymore... Example: fun...

presque 14 ans il y a | 2 réponses | 1

2

réponses

Question


Pan plots with linked x axis
I noticed a problem which is also described in much more details here: http://www.mathworks.ch/matlabcentral/newsreader/view_th...

presque 14 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
How to sample from custom 2D distribution?
Try pinky :) http://www.mathworks.com/matlabcentral/fileexchange/35797

presque 14 ans il y a | 2

| A accepté

Réponse apportée
Extracting the red channel of an image
v contains only one color plane, so imshow(v) treats it as a grayscale image. You have there the actual red intensities. If y...

presque 14 ans il y a | 0

Question


Optimization problem
Hi, I try to get the minimum of a function which is defined at discrete points (i,j - integers). The simplest example would be...

presque 14 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
How to convert a nucleotide sequence data into complex number form such that base A= 1+i, G=1-i, C= -1-i and T=-1+i
function J = convert2complex(S) I = nt2int(S); J = nan(size(I)); J(I == 1) = 1+1i; J(I == 2) = -1-1i; ...

presque 14 ans il y a | 0

| A accepté

Question


Bioinformatics toolbox - featuresmap question
Hi, I'm trying to plot the annotations corresponding to a chromosome, and I would like to plot only a small region of the chr...

presque 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
error in the code for markov chain
I guess you want a matrix Chain which has in the end on each row some probabilities... You try to put a vector curr_state into ...

presque 14 ans il y a | 0

| A accepté

Charger plus