Answered

Font problems when exporting as EPS

I wonder if Mathworks is ever going to fix this bug... It is present since R2014b... it is easily reproducible (every exported e...

Font problems when exporting as EPS

I wonder if Mathworks is ever going to fix this bug... It is present since R2014b... it is easily reproducible (every exported e...

5 years ago | 0

Question

How to obtain InsertSize from a BioMap object?

Is there a way of obtaining the |InsertSize| field (available using |bamread|) when opening a bam file as a |BioMap| object? Ope...

6 years ago | 2 answers | 0

Question

Does Matlab support bed, wig, and other usual genomics file formats?

I'm curious if the new version of Matlab (2014b) added support for the usual genomics file formats: bed, wig, bedGraph, BigWig? ...

6 years ago | 1 answer | 1

Question

What is the default figure font in Matlab 2014b?

Hi, I tried to import in Illustrator an eps figure created with Matlab 2014b but I get a warning that some font is not installe...

6 years ago | 2 answers | 0

Question

How to write a faster seqrcomplement function

Hi, I noticed that whenever I use the function |seqrcomplement|, the line that calls this function takes about 80-90% of the ...

7 years ago | 1 answer | 0

Question

How to add the results of nmercount

Hi, I would like to use |nmercount| to count the 5-mers in multiple strings, and then to add the counts in only one structure...

7 years ago | 1 answer | 0

Answered

MATLAB keeps crashing, particularly opening help and during using plottools..

I also noticed that the help of Matlab stops responding sometimes... For example if I try to search something in the help window...

MATLAB keeps crashing, particularly opening help and during using plottools..

I also noticed that the help of Matlab stops responding sometimes... For example if I try to search something in the help window...

7 years ago | 1

Question

Matlab help window doesn't allow copy

Hi, I have a problem with the Matlab help that pops up when I press F1. I used to copy-paste different examples from there di...

7 years ago | 6 answers | 1

Question

plot and save figures WITH the white margin

Hi, When I save the figures with the save button from the figure's toolbar I always get an EPS file WITH the a white margin aro...

7 years ago | 1 answer | 0

Answered

Read text file and store in .mat file

filename = 'example.txt'; fileID = fopen(filename,'r'); data = textscan(fileID, '%s\n'); data = data{1}; ...

Read text file and store in .mat file

filename = 'example.txt'; fileID = fopen(filename,'r'); data = textscan(fileID, '%s\n'); data = data{1}; ...

7 years ago | 0

Question

How to export a figure with its UI elements in Windows 7?

Hi all, I'm trying to export a Matlab figure together with its UI elements (the whole figure window). The usual way I export ...

8 years ago | 2 answers | 0

Answered

Cleaning-up Code With Comments

Control + R comments a line and Control + T removes the comment marker from the begining of a line. The comments start with the ...

Cleaning-up Code With Comments

Control + R comments a line and Control + T removes the comment marker from the begining of a line. The comments start with the ...

8 years ago | 0

Question

Saving to BAM files from a BioMap object ?

Hi, I noticed that in the Release Notes of the 2013a bioinformatics toolbox it is mentioned that now it is possible to write ...

8 years ago | 1 answer | 0

Answered

how to customize a colorbar?

Nevermind... I wanted something like the following (and I figured out that |imagesc| can help) f = smooth(rand(1,100), 1...

how to customize a colorbar?

Nevermind... I wanted something like the following (and I figured out that |imagesc| can help) f = smooth(rand(1,100), 1...

8 years ago | 0

| accepted

Question

how to customize a colorbar?

Hi, I try to plot a colorbar next to a plot but to show a color corresponding to the value of the function at that position ...

8 years ago | 2 answers | 0

Answered

how can we preallocate a 2d array?

See here some examples: http://www.mathworks.com/support/solutions/en/data/1-18150/

how can we preallocate a 2d array?

See here some examples: http://www.mathworks.com/support/solutions/en/data/1-18150/

8 years ago | 0

Solved

Return the first and last character of a string

Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

8 years ago

Solved

Compute a dot product of two vectors x and y

x and y are input vectors, d is a number and contains their dot product

8 years ago

Solved

Rotate a Matrix by 90 degrees

Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

8 years ago

Solved

Whether the input is vector?

Given the input x, return 1 if x is vector or else 0.

8 years ago

Solved

Multiply a column by a row

* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

8 years ago

Solved

Find the largest value in the 3D matrix

Given a 3D matrix, A, find the largest value. E.g. >> A = 1:9; >> A=reshape(A,[3 1 3]); >> islargest(A) ans = 9

8 years ago

Solved

Reverse Run-Length Encoder

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

8 years ago

Solved

Who Has the Most Change?

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

8 years ago

Answered

Error with tempname and tempdir

I found the problem on another forum... The SYSTEM has to have full permissions in the TEMP folder... and somehow this was remov...

Error with tempname and tempdir

I found the problem on another forum... The SYSTEM has to have full permissions in the TEMP folder... and somehow this was remov...

8 years ago | 0

Question

Error with tempname and tempdir

Recently I noticed that |tempname| and |tempdir| are not working anymore on my computer. Any ideas about why I get the following...

8 years ago | 4 answers | 0

Question

Matlab 2012b on Windows 8?

Hi, I want to update my OS to Windows 8 but I would like to know first if anyone noticed any issues in Matlab on Windows 8. A...

8 years ago | 3 answers | 0

Question

Plot contour lines on top of imagesc?

Hi, I'm trying to make a contour plot with one of the variables being discrete (integer). I try to combine somehow the 2 foll...

8 years ago | 1 answer | 0

Answered

What are the MATLAB job options?

Well, all these answers sound good but I would like to hear from someone which can say: I am smart and I know Matlab so I got th...

What are the MATLAB job options?

Well, all these answers sound good but I would like to hear from someone which can say: I am smart and I know Matlab so I got th...

8 years ago | 2