What is your unusual use of MATLAB?

30 ビュー (過去 30 日間)
Fangjun Jiang
Fangjun Jiang 2011 年 6 月 8 日
コメント済み: Zhenyang 2024 年 2 月 28 日 12:48
I remember reading a blog (maybe by Doug Hull) that someone uses MATLAB to send emails and check local weather. I am just wondering what is your unusual use of MATLAB. Maybe there is something that might surprise every one.
In answering a question today, I found out that I can use MATLAB to listen to online music.
system('C:\WINDOWS\system32\dllcache\wmplayer http://www.satelitemusical.net/mj-akon-hold-my-hand.wma')
Of course not really have to use MATLAB, but, it's cool.
What is your usage?
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 9 月 15 日
Grzegorz Knor's unusual case is a good one, although I din't intend to accept an answer for this question but my finger slipped. Hope there will be more coming and I enjoyed every one's answer!
madhan ravi
madhan ravi 2019 年 5 月 15 日
編集済み: madhan ravi 2019 年 5 月 15 日
infinite votes!!!!! This is an extraordinary thread . Thank you very much Fangjun. MATLAB at it's best!!!! Long live MATLAB!!!!

サインインしてコメントする。

採用された回答

Grzegorz Knor
Grzegorz Knor 2011 年 9 月 15 日
My cat likes to chase the laser pointer. Once the battery has run out and I wrote a few lines of code to give him the entertainment :)
Something like that (Lissajous curve):
figure('menubar','none','color','k')
h = plot(sin(sqrt(2)*0+sqrt(3)),cos(sqrt(5)*0),'r.','MarkerSize',20);
xlim([-1 1])
ylim([-1 1])
axis off
for t=0.01:.01:100
set(h,'xdata',sin(sqrt(2)*t+sqrt(3)),...
'ydata',cos(sqrt(5)*t))
drawnow
end
  6 件のコメント
Riley Duffens
Riley Duffens 2020 年 12 月 27 日
how can you draw the line by modifying the code? Asking for another project.
Walter Roberson
Walter Roberson 2020 年 12 月 27 日
Riley Duffens could you expand on your question? Are you asking how to change the set(h) call into a plot() call? Are you asking how to change the plotting to use animatedline() ?

サインインしてコメントする。

その他の回答 (18 件)

Daniel
Daniel 2011 年 8 月 7 日
In winter I use MATLAB as a bed warmer. I run a infinite loop with a lot of calculus and huge memory swapping on my laptop while it is in bed.
  1 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 8 月 7 日
That is ..., unbelievable!

サインインしてコメントする。


Andreas Goser
Andreas Goser 2011 年 6 月 9 日
I used Simulink and the very first version of the Video and Image Processing Blockset to identify a roaming cat that disturbed our sleep and - err - introduced a smelling front door.
It helped. After 3 days, the cat was identified and I could speak with the owner.
  4 件のコメント
Jan
Jan 2011 年 6 月 9 日
@Andreas: I've interested in the arguments, the owners used to convince their cat to avoid your land property. "Stay away, he has undocumented 64bit tools!"
Paulo Silva
Paulo Silva 2011 年 6 月 9 日
nice work, +1 vote

サインインしてコメントする。


Matt Fig
Matt Fig 2011 年 6 月 8 日
This is funny, and kind of embarrassing to admit, but I use my timer function, remindme, to time my kid's corner time. If I am MATLAB-ing and there is a naughty behavior that warrants some corner time, I can simply set the reminder so I know I won't forget...
  11 件のコメント
Doug Hull
Doug Hull 2011 年 8 月 24 日
That would explain the question I saw the other day on here about "How do I speed up a timer application from 5 minutes to 4 minutes?" :)
K E
K E 2012 年 2 月 20 日
How good is your code during the period when the kids is in the corner yelling? Sterling I bet.

サインインしてコメントする。


Joachim Schlosser
Joachim Schlosser 2011 年 8 月 19 日
I used MATLAB and sunposition-m to calculate sun position and ray-traced the somewhen expected multi-story buildings around. Based on that I decided which real estate in our city to buy, the left one or the right one.
  1 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 8 月 19 日
Hum, sounds like a complex task! Any interests from any real-estate agents?

サインインしてコメントする。


Aurelien Queffurust
Aurelien Queffurust 2011 年 9 月 16 日
Using an uitable I enter every 2-3 days , the weight of my wife since 3 years ! Data are saved in a MAT-file. I use functions like polyfit to have a forecast of her weight in 1 week / 1 month. I also make some basic statistics like mean , min and max . I have called this utity "MATLAB fit". It worked fine until she was pregnant, the quadratic-polynomial fit became a polynomial of degree 10 ;)
  4 件のコメント
Walter Roberson
Walter Roberson 2013 年 5 月 10 日
Sounds like a case of "overfitting" !
Zhenyang
Zhenyang 2024 年 2 月 28 日 12:48
That's really interesting! Could you share the code plz?

サインインしてコメントする。


Sean de Wolski
Sean de Wolski 2011 年 6 月 9 日
I originally wrote this function: FEX: imcensor to censor beer cans out of pictures that might appear online.
  2 件のコメント
Paulo Silva
Paulo Silva 2011 年 6 月 9 日
nice one, +1 vote
Daniel Bryant
Daniel Bryant 2021 年 2 月 13 日
nice, need to use that for the kardasians

サインインしてコメントする。


Steve Houghton
Steve Houghton 2011 年 11 月 21 日
I was struggling to identify the fault with an old regulated power supply - as I had no circuit diagram or service information.
I traced out the circuit from the PCB and recreated it in SimElectronics. I then used a real oscilloscope on the real PCB to compare against the signals within the model using the standard Simulink scope. Worked very well and essentially provided me with a 'gold standard' piece of hardware to compare my failed unit against!

Junior
Junior 2011 年 8 月 24 日
I wrote a utility function taking as inputs the characteristics of a house (such as the location, neighborhood etc) and returning a score. The function was meant to rank houses for me and help decide which house to go for... well, my wife ended up choosing a different house than the one my program had picked. J.
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 8 月 24 日
Well, you can find another real-estate-savvy && MATLAB-savvy person here.
Jan
Jan 2011 年 9 月 15 日
Which computer language did your wife use to program her decision maker? Anyway, I hope you decided to live in the same house as your wife.

サインインしてコメントする。


Jan
Jan 2011 年 6 月 8 日
I've used Matlab 5.3 on an old (a fanless 486!) laptop as babyphon: Record 10 seconds through the microphon, forward the sound through a 16 m wire to a small speaker, if the activity is over a specific level.
  3 件のコメント
Jan
Jan 2011 年 6 月 8 日
I cannot control the heap problems of Java reliably. For a baby monitor "reliable" means a MTBF > pi*6e7 seconds, because than the child is old enough to get up at night to shake the dad's arm and explain, that the silly computer asks, if it is allowed to download some security updates for Windows.
Therefore we need these conditions for the Parenting toolbox: 1. No internet connection, such that auto-updates can be disabled, 2. matlab -nojvm compatible, 3. a method to lock the keyboard without forcing the computer to fall into sleep.
Jason Ross
Jason Ross 2011 年 6 月 9 日
For #3, get the freeware utility "Toddler Trap". It traps all the keys so that little fingers don't cause harm. I'm sure you could call it with system() or code a similar thing in MATLAB.

サインインしてコメントする。


Sean de Wolski
Sean de Wolski 2011 年 6 月 8 日
I've used MATLAB to prank my coworkers. All of our powerful computers are connected so it's easy to modify anyone's mfiles.
A CSSM thread last year gave a creative and camouflaged way to rick roll someone, that's still the best.
  8 件のコメント
Sean de Wolski
Sean de Wolski 2011 年 6 月 9 日
Impossible not to. My friend won: I was present when he was rickrolled and he played the whole song on the speakers in the lab.
Paulo Silva
Paulo Silva 2011 年 6 月 16 日
@Sean, just saw your question, never had much fun pranking people with MATLAB but often the code I share goes with small errors on purpose, it's fun to see if someone can repair the problem or not.
I would love to rickroll someone with MATLAB, when I started programming it was with Borland C++ 3.1 (or some version similar, can't remember), my favorite thing was to generate sounds, like buzzing and beeping, many times the computer never stopped doing the sound even after my program was closed, it was very funny to see all the class and teacher annoyed with the sounds.

サインインしてコメントする。


Paulo Silva
Paulo Silva 2011 年 6 月 9 日
I used MATLAB to see how bad was the damage on my phone touch screen and to minimize the error, got the alignment values from the device and plotted them in a figure, it was really bad, I couldn't adjust the values and the touch screen had to be replaced.
  2 件のコメント
Matt Fig
Matt Fig 2011 年 6 月 9 日
That's cool Paulo! I would have no idea how to do that.
Paulo Silva
Paulo Silva 2011 年 6 月 9 日
no big deal, I was working with the phone on my pocket and something sharp hit the screen, later at home I noticed that there was one huge offset on the position I pressed and the phone response.
It's one of those with windows mobile 6, there's one alignment tool that couldn't do the job (bad software) and the last way to change the alignment was to get/set the registry values, the values are points on the corners and center of the screen, so I plotted them with MATLAB to see the screen rectangle and have some idea what to change in order to reduce the offset (error on the position we press and the response), that saved me time because the device must be reboot after every change of the values.

サインインしてコメントする。


Titus Edelhofer
Titus Edelhofer 2011 年 8 月 19 日
When we were building our house I used the Virtual Reality Toolbox from within Simulink to "walk" through the 3D model given to us by the architect. Was much easier to navigate then his vrml-viewer ;-).
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 8 月 24 日
What format does the architect use? I have not had a chance to try the Virtual Reality Toolbox yet.
Titus Edelhofer
Titus Edelhofer 2011 年 8 月 24 日
It is a VRML (Virtual Reality Modeling Language) file (extension .wrl).

サインインしてコメントする。


sreedevi
sreedevi 2014 年 1 月 21 日
I used Matlab to calculate the selling price of clothes for my mother's textile business. I entered the cost price of all the clothes and generated a table of SP corresponding to different profit values. This was easier than using the calculator and helped my mother a lot. I also saved the result in a text file for later references.

Catie McVey
Catie McVey 2015 年 9 月 2 日
編集済み: Catie McVey 2015 年 9 月 2 日
In high school I used MatLab's Image Analysis Toolbox to measure structural variations in the facial features of horses, and subsequently used the Statistics toolbox to create models that predict suitability of a given horse to a career in a specific show discipline using these facial biometrics (a new spin on an old cowboy trick). Throughout my undergraduate studies I have research how variability in facial structures of day-old piglets correlate to aggressive behaviors later in life using these same MatLab tools. This summer for my honors thesis research, I used MatLab's Computer Vision Toolbox to continuously track the movements of paint spots on a sow's nose and shoulder while she expressed nesting behaviors in the 10-hour period preceding the birth of her piglets. Currently trying to use the Signal Processing and Neural Network toolboxes to identify patterns in the time-position vectors generated from this algorithm that differentiate between sows with good and bad piglet survival outcomes. The ultimate goal of that project is to identify which nesting behaviors are most effective at priming a pig's maternal instinct so that future enrichment materials (toys) can be designed to stimulate these targeted behaviors, thus improving the welfare and performance of both sows and piglets concurrently.
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 6 月 24 日
Nifty!
Jan
Jan 2018 年 6 月 24 日
Johann Kaspar Lavater tried to classify human properties based on their faces. It was a serious failure.

サインインしてコメントする。


Jan
Jan 2011 年 6 月 9 日
編集済み: Jan 2018 年 6 月 24 日
I've suggested to use the Matlab installation CD as an animated hardward smiley: CSSM: 25-Oct-2009
[EDITED] The link is dead. Summary: Some asked how to use Matlab to create a smiley. My answer was to use the CD and an Edding.
  1 件のコメント
Paulo Silva
Paulo Silva 2011 年 6 月 16 日
nice one, +1 vote

サインインしてコメントする。


John D'Errico
John D'Errico 2014 年 6 月 14 日
Long ago, I wrote a bridge hand simulator. Of course, the nice thing about MATLAB is that even after nearly 20 years, it still runs well and continues to answer my questions.
As a bridge player, there are often questions of probability that come up, for example, how often will you see hands with a specific shape and quality, specific high cards, etc. This tool has helped me many times to decide on the best meaning for a bidding sequence, or to help me learn what was the best way to play a bridge hand (after the fact of course.) I've also used it to create sets of hands for my partner and I to use as bidding practice.

Fangjun Jiang
Fangjun Jiang 2011 年 6 月 9 日
This 'Parenting Toolbox' is a great idea. It reminds me that I've made my contributions. I wrote a program to help my kids on their math. It generates some random problems (addition, subtraction, multiplication or division with random numbers in a certain range) and asks for the answer. It is not that hard, right? Well, I added more features such as recording their sessions and tracking their progress. I compiled it into an executable so it can run on kids computer. It all worked but then Mom easily found a FREE website that can do all the above with fancy interface and great animation. It beat my program completely. That was a hard hit on my enthusiasm on Matlab.
  8 件のコメント
Jan
Jan 2011 年 6 月 15 日
See: http://www.nytimes.com/2011/06/14/technology/14security.html?_r=2&ref=technology
Fangjun Jiang
Fangjun Jiang 2011 年 6 月 16 日
Really hard-to-believe and scary reality. Thanks for sharing!

サインインしてコメントする。


Brian Concannon
Brian Concannon 2011 年 11 月 21 日
I use Matlab to execute the C code in our microcontroller's C code.
  2 件のコメント
Jan
Jan 2012 年 2 月 20 日
How do you do this? Which microcontroller?
Maddila
Maddila 2012 年 11 月 26 日
how do u do that

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTiming and presenting 2D and 3D stimuli についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by