Publié le


Plot Google Map
Jiro's pick this week is plot_google_map by Zohar Bar-Yehuda. This pick comes from Chad's response to Brett's...

environ 14 ans il y a

Thumbnail

Publié le


Calculating arclengths…made easy!
Brett's Pick this week is Arclength, by John D'Errico. First, a nod (and some MATLAB swag!) to Frank...

environ 14 ans il y a

Thumbnail

A résolu


Make blocks of color
Given a (Nx3) sequence of RGB colors, I want to create a (numRowBlocks x numColBlocks x 3) image comprising (blockSize x blockSi...

environ 14 ans il y a

Publié le


Run on Target Hardware
Doug's picks this week are Simulink Support Packages for LEGO MINDSTORMS NXT , Beagleboard [link], Arduino Uno [link], and...

environ 14 ans il y a

Thumbnail

Publié le


What is your favorite unrecognized File Exchange submission?
Contents You make the call! A couple ground rules. ... read more...

environ 14 ans il y a

Thumbnail

Publié le


Autostereogram
Jiro's pick this week is abSIRD by Daniel Armyr. Here's a fun pick for the week. This function takes a matrix,...

environ 14 ans il y a

Thumbnail

Publié le


Archimedes’s Computation of Pi
Brett's Pick this week is The Computation of Pi by Archimedes, by Bill McKeeman. In the comments to...

environ 14 ans il y a

Thumbnail

Publié le


MATLAB Plot Gallery
Jiro's pick this week is the MATLAB Plot Gallery by Plot Gallery. This week, I'd like to introduce a new page...

plus de 14 ans il y a

Thumbnail

Publié le


Playing Billiards in MATLAB
Brett's Pick this week is pool, by Husam Aldahiyat. Today's quick Pick is all about escapism. Back in...

plus de 14 ans il y a

Thumbnail

Réponse apportée
opening many files and changing code to match file name
This is probably a little too specific to your case, i.e. it's looking for a particular text. I'm just using <http://www.mathwor...

plus de 14 ans il y a | 0

| A accepté

Publié le


Weather at your fingertips
Jiro's pick this week is Google Weather by Sagar Aiya. Since I spend a lot of my work (and some non-work) time in...

plus de 14 ans il y a

Thumbnail

Réponse apportée
Bug when printing to eps
Does this work? print(fig_h, '-depsc','-r700',file_saveas)

plus de 14 ans il y a | 2

Publié le


When Deal doesn’t work, Disperse!
Brett's Pick this week is Disperse, by Sam Hallman. When I first saw Sam's "disperse" function--with the...

plus de 14 ans il y a

Thumbnail

Réponse apportée
Simultaneous Video and Audio Acquisition
I assume you want something much better than issuing a "start" command to both |analoginput| and |videoinput| objects like this:...

plus de 14 ans il y a | 0

A résolu


Extract leading non-zero digit
<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

plus de 14 ans il y a

A résolu


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

plus de 14 ans il y a

A résolu


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

plus de 14 ans il y a

Réponse apportée
Unwanted line on plot
Is this what you're looking for? count = 0; Out1 = nan(1, 30); Time = nan(1, 30); while count < 3 for i = 1...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Unwanted line on plot
*[Old Answer]* You're seeing that behavior because you have data points remaining from the previous loop. You can reset the v...

plus de 14 ans il y a | 0

Réponse apportée
error in code
Read this line carefully: k(i+1;:)=k(i;:)+h*F_tanker(x,kat(i)) ; You have a couple of extra |;| in the line.

plus de 14 ans il y a | 0

Réponse apportée
Beginners Guide to Excel Link?
Have you gone through the documentation for Excel Link (or Spreadsheet Link EX)? It has several examples, including writing VBA ...

plus de 14 ans il y a | 0

Réponse apportée
Labeling data points in plotyy
You can specify the axes in which to place the text. For example, specify |ax(2)| for the right axes. Notice below, I specifi...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
GUI - How to make a pop-up figure prevent from modifying anything else until it's closed
Is this what you're looking for? figure('WindowStyle', 'modal')

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
replacement of for loop
It should be |&| instead of |&&| indexes= ROI~=255 & ROI~=0;

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
swap matrix row randomly
random_x = x(randperm(size(x, 1)), :)

plus de 14 ans il y a | 30

| A accepté

Réponse apportée
Question about labels under each boxplot.
When you say you don't have success, I assume you're saying that the labels aren't being rendered with the bold/italics/subscrip...

plus de 14 ans il y a | 2

Réponse apportée
converting date to matlab date
You need to pass in a string for datenum datenum('20100815', 'yyyymmdd')

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Identifying lab id within a parfor
Why not save the file based on the iteration number? Wouldn't you still overwrite the results if you were using the labindex bec...

plus de 14 ans il y a | 1

A résolu


Back to basics 20 - singleton dimensions
Covering some basic topics I haven't seen elsewhere on Cody. Remove the singleton dimensions from the input variable (e.g. if...

plus de 14 ans il y a

Réponse apportée
function reference file
Read about <http://www.mathworks.com/help/matlab/matlab_prog/function-handles.html "Function Handles"> here.

plus de 14 ans il y a | 0

Charger plus