已解决


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

13 years 前

已解决


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

13 years 前

已解决


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

13 years 前

已解决


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

13 years 前

已解决


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

13 years 前

已解决


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

13 years 前

已回答
help with decimal,hexa,etc converter.
str = dec2base(yourBase10Number, newBase)

13 years 前 | 0

已回答
Help 3D plotting in matlab
And more options here: http://www.mathworks.com/help/matlab/surface-and-mesh-plots-1.html

13 years 前 | 0

已回答
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...

13 years 前 | 0

| 已接受

已回答
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...

13 years 前 | 0

| 已接受

已回答
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...

13 years 前 | 1

已回答
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...

13 years 前 | 2

| 已接受

已回答
prevent function from displaying output
f = delet;

13 years 前 | 1

| 已接受

已回答
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 ...

13 years 前 | 0

| 已接受

提问


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

13 years 前 | 2 个回答 | 0

2

个回答

提问


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

13 years 前 | 1 个回答 | 0

1

个回答

已回答
date for release of Matlab 2012b general release
My guess: tomorrow, Sep. 4, 2012...

13 years 前 | 1

已解决


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

13 years 前

已解决


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

13 years 前

已解决


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

13 years 前

已解决


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

13 years 前

已解决


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

13 years 前

提问


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

13 years 前 | 2 个回答 | 1

2

个回答

提问


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

13 years 前 | 0 个回答 | 0

0

个回答

已回答
How to sample from custom 2D distribution?
Try pinky :) http://www.mathworks.com/matlabcentral/fileexchange/35797

13 years 前 | 2

| 已接受

已回答
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...

13 years 前 | 0

提问


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

13 years 前 | 1 个回答 | 1

1

个回答

已回答
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; ...

13 years 前 | 0

| 已接受

提问


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

13 years 前 | 1 个回答 | 0

1

个回答

已回答
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 ...

13 years 前 | 0

| 已接受

加载更多