Beantwortet
extract the same coloumn from multiple mtrix
To extract column 70 from matrix M you do C = M(:,70); To add this column to another matrix (M2) you do M2 = [M2, C...

etwa 12 Jahre vor | 0

Beantwortet
User interface on R2012b
You're stuck :)

etwa 12 Jahre vor | 0

Beantwortet
How to read/write files inside a loop?
Use sprintf('Sec%d.dat', i) instead of 'Sec(i).dat'. So something like this Amat = dlmread (sprintf('Sec%d.dat', i)...

etwa 12 Jahre vor | 1

Beantwortet
How to write a "text" object inside axes??
It seems you didn't specify the position vector... a = text('Parent', h(13), 'Position', [???], 'String', 'Test')

etwa 12 Jahre vor | 0

Beantwortet
How do I create/find a bam index file for using the bamread function?
You can use a BioMap object to load the information from the BAM file without the BAI file. See instructions here: http://www.ma...

etwa 12 Jahre vor | 0

| akzeptiert

Frage


A question about linkaxes options
Hi all, I would like to link all the x axes but only a subgroup of the y axes in a figure. For example is I have 3 axes (ax(1...

etwa 12 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Is there an easy way to redirect the output of gscatter to a previously defined axes handle?
Probably you just need to make the important axes the current axes. For example: figure hax1 = subplot(2,1,1); hax2 =...

etwa 12 Jahre vor | 0

Beantwortet
??? Subscript indices must either be real positive integers or logicals.
You forgot an "*" puvy = P2 + u * (P3 - P2);

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
Create random values between two decimal values
en_points(:,2) = (0.5 - l) + 2*l*rand(NUM_EN_POINTS,1);

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
Plotting a function inside a m-file?
Function f2 returns only a number... Probably you want a vector, with one element for each element of x. In this case use f...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
How do I clear a figure?
Use |clf| http://www.mathworks.com/help/matlab/ref/clf.html

etwa 12 Jahre vor | 1

| akzeptiert

Beantwortet
How can I make the plot function use a string as an argument?
use |eval|: http://www.mathworks.com/help/matlab/ref/eval.html Example: V = rand(100,1); string = 'V(1:10)'; plot(...

etwa 12 Jahre vor | 2

| akzeptiert

Beantwortet
Subscript Error Plz help
Just look at line 50 and what vectors are there. Probably there is something like vector(negative_number) So check why ...

etwa 12 Jahre vor | 0

| akzeptiert

Beantwortet
help with decimal,hexa,etc converter.
str = dec2base(yourBase10Number, newBase)

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 1

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

etwa 12 Jahre vor | 2

| akzeptiert

Beantwortet
prevent function from displaying output
f = delet;

etwa 12 Jahre vor | 1

| akzeptiert

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

etwa 12 Jahre vor | 0

| akzeptiert

Frage


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

etwa 12 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 12 Jahre vor | 1 Antwort | 0

1

Antwort

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

etwa 12 Jahre vor | 1

Frage


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

mehr als 12 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


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

mehr als 12 Jahre vor | 0 Antworten | 0

0

Antworten

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

mehr als 12 Jahre vor | 2

| akzeptiert

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

mehr als 12 Jahre vor | 0

Frage


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

mehr als 12 Jahre vor | 1 Antwort | 1

1

Antwort

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

mehr als 12 Jahre vor | 0

| akzeptiert

Mehr laden