今天我想向大家介绍杰克·米切尔,他是我认识的一位MATLAB用户,最近又有人提醒我。杰克是机械工程专业的学生,对数据科学感兴趣。他https://blogs.mathworks.com/loren/2021/09/21/what-do-matlab-and-games-have-in-common/“>阅读更多>>
今天我想向你介绍Jake Mitchell,我知道的一个MATLAB用户,最近有人再次提醒我。杰克是机械工程专业的学生,他对数据科学感兴趣。He uses MATLAB to explore strategies and positions in various games, and then writes about it. As he does, he shows the core code for the way pieces move and the game unfolds. Games with Simple RulesJake has really nice commentary about possible strategies, based on simulating many, many plays of each games. In some cases, he also applies machine learning techniques to enable a machine to learn to play, such as tic-tac-toe. He's got an algorithm for playing Connect-4, a fun post on ...read more >>
Today's guest blogger is Christine Tobler, who's a developer at MathWorks working on core numeric functions.Hi everyone! I'd like to tell you a story about round-off error, the algorithm used in sum,... read more >>
今天的客博主是克里斯汀·托布勒,谁是MathWorks开发核心数值函数的开发者。大家好!我想告诉您一个关于舍入错误的故事,即sum,以及兼容性问题。在过去几年中,我的同事Bobby Cheng对sum进行了修改,使其更准确、更快,我认为这将是一个有趣的故事。目录sum中的数字问题计算sum的不同方法更改sum关于精确计算sum的参考资料帮助函数sum中的数值问题,即使是像求和,对于浮点数,我们求和的顺序很重要:x=(1+1e-16)+1e-16x=1y
..阅读更多>;
Today's guest blogger is Alan Weiss, who writes documentation for Optimization Toolbox™ and other mathematical toolboxes.Table of ContentsCone Programming Discrete Dynamics With Cone... read more >>
...read more >>
Have you ever needed to solve an optimization problem where there were local minima? What strategy do you use to solve it, trying to find the "best" answer? Today I'm going to talk about a simple... read more >>
Have you ever needed to solve an optimization problem where there were local minima? What strategy do you use to solve it, trying to find the "best" answer? Today I'm going to talk about a simple strategy, readily available in the Global Optimization Toolbox.Solve a Simple ProblemOr at least let's try. I have some data and I want to fit a particular form of a curve to it. First let's look at the pharmacokinetic data. Here's the reference: Parameter estimation in nonlinear algebraic models via global optimization. Computers & Chemical Engineering, Volume 22, Supplement 1, 15 March 1998, Pages S213-S220 William R. Esposito, Christodoulos A. Floudas.The data are time vs. concentrationt = [ 3.92, 7.93, 11.89, 23.90, 47.87, 71.91, 93.85, 117.84 ]t = 1×8 3.9200 7.9300 11.8900 23.9000 47.8700 71.9100 93.8500 117.8400 c = [0.163, 0.679, 0.679, 0.388, 0.183, 0.125, 0.086, 0.0624 ]c = 1×8
...read more >>
很多地方共享文件代码再现和重用网站主机MATLAB与其他语言的互操作性资源结论有很多方法…read more >>
目录大量代码,Lots of Places Shared Files Code Reproducibility and Reuse Sites that Host MATLAB Interoperability with Other Languages Resources ConclusionsThere are lots of ways to share MATLAB code. Since there are lots more than there used to be, I thought it would be good to review the state as of July 2021.Lots of Code, Lots of PlacesThere are lots of places where you can find shared MATLAB code. My first go-to, after checking that the code I need is not in MATLAB or any of the toolboxes, is to check out the File Exchange.From here, I can filter further, in this case to find contributions for Earth, Ocean, and Atmospheric Sciences.And that's not counting more general files on the File Exchange that could be useful for this
...read more >>
Before the pandemic (actually a couple of years before), as I was trying to find a super easy way to show the power of a pre-trained network in MATLAB, I made this example from my desk in the office.... read more >>
Before the pandemic (actually a couple of years before), as I was trying to find a super easy way to show the power of a pre-trained network in MATLAB, I made this example from my desk in the office. Behind there is a "board" half of which is magnetic and the other half is cloth-covered so I can hang things with pushpins on it.Here's a picture of me standing in front of this board, scowling at my computer screen for some reason.And here's the code I was using. But I am not in my office now so you will see different pictures.First set up my webcamI first set up my webcam, and make sure it's working. You may be pleasantly surprised to learn that your webcam can be used in MATLAB Online.And I import the pretrained network alexnet.w = webcamw = webcam with properties: Name:
...read more >>
A mind-bending tale of adventure. A mildly distasteful yarn.Today's guest blogger is Rob Holt, who works at MathWorks in Natick, Massachusetts.Rob currently serves as the Manager for Biological... read more >>
A mind-bending tale of adventure. A mildly distasteful yarn.Today's guest blogger is Rob Holt, who works at MathWorks in Natick, Massachusetts.Rob currently serves as the Manager for Biological Sciences at MathWorks. He is a coordinator and collaborator for biology, biotech, and pharmaceutical applications. Previously, Rob spent five years as a Senior Scientist at Invicro, a Konica Minolta company, where he designed, implemented, and communicated image analysis algorithms for drug discovery and development. Rob earned his PhD at Dartmouth College, where he focused on molecular cancer imaging through multimodal medical image synthesis. Follow more of Robÿs antics on his Twitterand his LinkedIn. I was trimming my beard last weekend. While my mind was wandering due to the lack of a nearby computational device, I thought "how fast does my beard hair grow?" It was one of those
...read more >>
Today's post is brought to you from Peter Perkins, a member of the MathWorks development team.Having worked on some of MATLAB's time and date functions, people at The MathWorks sometimes ask me... read more >>
...read more >>
Today our guest blogger is Lisa Kempler, who works at MathWorks in Natick, Massachusetts. Lisa supports researchers and educators, frequently geoscientists, helping them build and host the tools that... read more >>
...read more >>
In a recent post, I talked about for-loops in MATLAB and how to optimize their use knowing how MATLAB stores arrays in memory. Today I want to talk about getting ready for parallel computation,... read more >>
In a recent post, I talked about for-loops in MATLAB and how to optimize their use knowing how MATLAB stores arrays in memory. Today I want to talk about getting ready for parallel computation, specifically using parallel for-loops, via parfor. En route to creating code suitable for running in parallel, sometimes we take code with a for-loop and simply replace it with a parallel loop, using parfor. That is, if we can't vectorize the code well first. This transformation from for->parfor works really well sometimes, but does not always work, and for very good reasons. For example, you can't simply replace for with parfor if loop iterations are not completely independent. You can find out more conditions here. There is a notable
...read more >>