Community Profile

photo

Mark


Last seen: 29 days ago Active since 2013

Statistics

  • Thankful Level 2
  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Question


counting pattern frequency in a string
Looking for ideas on the fastest way to count the number of occurrences of letter patterns in a string. For example, for the te...

4 years ago | 1 answer | 0

1

answer

Question


Any good tutorial examples of OOP in Matlab for agent-based models?
hello, I am new to OOP, and would like to see a few examples of how it might be used to develop agent-based models or cellular a...

7 years ago | 0 answers | 0

0

answers

Question


Generic code to import data from set of txt files?
I have a set of text files that have a 1x6 vector of data in each. The names of the text files are based on timestamps and are ...

8 years ago | 2 answers | 0

2

answers

Question


How can I adjust a matrix or a color map to have a gradient plus two distinct colors?
I have some data that ranges from 0 to 1 inclusive. This data is on the even positions (i.e., row and column both even) of a ma...

9 years ago | 0 answers | 0

0

answers

Answered
When I open matlab, I can not click anything. It seems everything is frozen.Before it worked well. I am using matlab 2011b on Mac. I did reinstall the program, the problem is still there! Anyone can help?
I found a workaround for 10.6.8 at least: Close all programs Go to Applications / Utilities / Java Preferences ...

9 years ago | 0

Answered
Java 10.6 Update 16 issue on OsX 10.6
I found a workaround: Close all programs Go to Applications / Utilities / Java Preferences The Java Prefs app...

9 years ago | 0

Answered
Java 1.6.0_51 breaks MATLAB 2012b on Mac OS X 10.6.8
I found a workaround: Close all programs Go to Applications / Utilities / Java Preferences The Java Prefs app...

9 years ago | 0

Answered
Java 1.6.0_51 breaks MATLAB 2012b and below
I found a temporary workaround for OS 10.6.8 at least, and involves no installations: Close all programs Go to App...

9 years ago | 0

Answered
Cannot type or edit in MATLAB, only right click and menus.
I found a workaround: Close all programs Go to Applications / Utilities / Java Preferences The Java Prefs app...

9 years ago | 2

| accepted

Question


Cannot type or edit in MATLAB, only right click and menus.
Strange occurrence today, I started MATLAB and I cannot get any input except right click menus. Running 2012a on MAC 10.6. Wor...

9 years ago | 3 answers | 2

3

answers

Question


Collapsing integer data into consecutive integers?
I have a matrix of values that include integers >= 0. There are repeats, and also gaps in consecutiveness. I would like to col...

9 years ago | 2 answers | 0

2

answers

Answered
Stor data in a vector
If you want preallocation: p_t2=1:1000; pt2=1:40; JJ=zeros(1,1000); for z=1:40 for v=1:25 XX=p_t2(...

9 years ago | 0

Answered
lines to curves drawing problem
The problem is that MATLAB doesn't know what curve you want, since there is no data between the points you have. You either nee...

9 years ago | 1

Answered
How to fit a long tail in histogram in one bin?
You could loop through your X values and make a temporary XT that assigns everything large to 2010: XT=X; XT(XT>xint*67) =...

9 years ago | 0

| accepted

Answered
why doesn't my "if" statement work?
The way you have it, you will only get the if statement to be satisfied if all elements of z are less than one. If you are tryi...

9 years ago | 0

Answered
what is wrong with my 'For' loop
In your loop, the calculation: kt*density*(n./60).^2*d^4 gives you a vector (1x11 in your case). You are trying to assign th...

9 years ago | 0

Question


Any way to get LZW compression on figure outputs to a tiff?
I am saving a sequence of tiff files using print(gcf,'name','-dtiff') The files that are output are compressed (compared to -...

9 years ago | 2 answers | 0

2

answers