罗兰关于MATLAB的艺术 https://blogs.mathworks.com/loren Loren Shure对MATLAB语言的设计很感兴趣。她是一名应用工程师,在这里写关于MATLAB编程和相关主题的文章。 星期一,9月13日2021 18:22:15 +0000 en - us 每小时 1 https://wordpress.org/?v=4.9.15 mathworks /罗兰 https://feedburner.google.com 订阅我的雅虎! 订阅与Feedly 订阅与SubToMe 与博客订阅订阅 订阅和Netvibes 订阅Bitty浏览器 每日轮流订阅 一个更快更准确的总数 http://feedproxy.google.com/~r/mathworks/loren/~3/XJBw2NixYkw/ https://blogs.mathworks.com/loren/2021/09/07/a-faster-and-more-accurate-sum/#comments Tue, 7 Sep 2021 12:13:33 +0000 罗兰美国舒尔 处理数据 数值精度 https://blogs.mathworks.com/loren/?p=4675

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 >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://blogs.mathworks.com/loren/files/sumPost_01.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“今天的客座博主是Christine Tobler,她是MathWorks的一名核心数字函数开发人员。大家好!我想告诉你一个关于舍入错误的故事,在sum中使用的算法,以及兼容性问题。在过去的几年里,我的同事Bobby Cheng对sum做了一些改变,使它更准确、更快,我认为在这里讲一个有趣的故事。目录< a href = " # H_D1CCC549 " >数值问题总之< / > < a href = " # H_E88D2C0B " >不同的计算方式和< / > < a href = " # H_1ED5AC71 " >更改金额< / > < a href = " # H_8D7D087E " >引用关于准确计算总和< / > < a href = " # H_9AF85F4B " > < / >辅助函数数值问题sumEven简单的函数like sum, with floating-point numbers the order in which we sum them up matters:x = (1 + 1e-16) + 1e-16x = 1y

...read more >>

https://blogs.mathworks.com/loren/2021/09/07/a-faster-and-more-accurate-sum/feed/ 7 https://blogs.mathworks.com/loren/2021/09/07/a-faster-and-more-accurate-sum/?s_tid=feedtopost
锥规划与最优离散动力学 http://feedproxy.google.com/~r/mathworks/loren/~3/4UM274CmCLc/ https://blogs.mathworks.com/loren/2021/08/18/cone-programming-and-optimal-discrete-dynamics/#respond 8月18日星期三12:17:07 +0000 罗兰美国舒尔 新功能 优化 https://blogs.mathworks.com/loren/?p=4641

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 >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://s.w.org/images/core/emoji/11/72x72/2122.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“今天的客座博主是Alan Weiss,他为最优化工具箱和其他数学工具箱编写文档。Cone Programming Discrete Dynamics With Cone Constraints Find Optimal Time Final Thoughts Helper FunctionsCone Programming嗨,大家好。今天的主题是圆锥规划,以及圆锥规划在火箭优化控制中的应用。自R2020b以来,coneprog求解器已经可用来解决圆锥编程问题。什么是圆锥规划?我认为它是二次规划的推广。 All quadratic programming problems can be represented as cone programming problems. But there are cone programming problems that cannot be represented as quadratic programs.So again, what is cone programming? It is a problem

...read more >>

https://blogs.mathworks.com/loren/2021/08/18/cone-programming-and-optimal-discrete-dynamics/feed/ 0 https://blogs.mathworks.com/loren/2021/08/18/cone-programming-and-optimal-discrete-dynamics/?s_tid=feedtopost
求最优值 http://feedproxy.google.com/~r/mathworks/loren/~3/uNWaeFNh7gM/ https://blogs.mathworks.com/loren/2021/08/03/finding-the-optimal-value/#comments Tue, 3 Aug 2021 12:10:46 +0000 罗兰美国舒尔 优化 https://blogs.mathworks.com/loren/?p=4418

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 >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://s.w.org/images/core/emoji/11/72x72/2122.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“/>

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 >>

https://blogs.mathworks.com/loren/2021/08/03/finding-the-optimal-value/feed/ 13 https://blogs.mathworks.com/loren/2021/08/03/finding-the-optimal-value/?s_tid=feedtopost
云环境下MATLAB代码的共享与运行 http://feedproxy.google.com/~r/mathworks/loren/~3/y8I-1xaywwg/ https://blogs.mathworks.com/loren/2021/07/15/sharing-and-running-matlab-code-in-the-cloud/#comments 7月15日星期四17:13:14 +0000 罗兰美国舒尔 社区 教育 外部接口 互操作性 可再生的研究 https://blogs.mathworks.com/loren/?p=4331

很多地方共享文件代码再现和重用网站主机MATLAB与其他语言的互操作性资源结论有很多方法…read more >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://s.w.org/images/core/emoji/11/72x72/2122.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“/>

目录大量代码,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 >>

https://blogs.mathworks.com/loren/2021/07/15/sharing-and-running-matlab-code-in-the-cloud/feed/ 2 https://blogs.mathworks.com/loren/2021/07/15/sharing-and-running-matlab-code-in-the-cloud/?s_tid=feedtopost
网络摄像头,平铺布局,人工智能和冰箱! http://feedproxy.google.com/~r/mathworks/loren/~3/vS4y9etYrEQ/ https://blogs.mathworks.com/loren/2021/06/03/webcam-tiledlayout-ai-and-a-refrigerator/#comments 星期四,03 june 2021 12:47:51 +0000 罗兰美国舒尔 数据科学 深度学习 机器学习 https://blogs.mathworks.com/loren/?p=4256

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 >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://blogs.mathworks.com/loren/files/fridge_2.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“/>

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 >>

https://blogs.mathworks.com/loren/2021/06/03/webcam-tiledlayout-ai-and-a-refrigerator/feed/ 1 https://blogs.mathworks.com/loren/2021/06/03/webcam-tiledlayout-ai-and-a-refrigerator/?s_tid=feedtopost
我的胡子一周长多长? http://feedproxy.google.com/~r/mathworks/loren/~3/4viljpnQuDc/ https://blogs.mathworks.com/loren/2021/05/20/how-long-does-my-beard-grow-in-a-week/#comments 5月20日星期四12:33:11 +0000 罗兰美国舒尔 有趣的 图像处理 https://blogs.mathworks.com/loren/?p=4200

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 >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://blogs.mathworks.com/loren/files/fridge_2.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“/>

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 >>

https://blogs.mathworks.com/loren/2021/05/20/how-long-does-my-beard-grow-in-a-week/feed/ 8 https://blogs.mathworks.com/loren/2021/05/20/how-long-does-my-beard-grow-in-a-week/?s_tid=feedtopost
到底什么是闰秒呢? http://feedproxy.google.com/~r/mathworks/loren/~3/IbDVpMSMR0Y/ https://blogs.mathworks.com/loren/2021/05/06/what-is-a-leap-second-anyway/#comments 5月6日星期四12:18:00 +0000 罗兰美国舒尔 数据类型 时间 https://blogs.mathworks.com/loren/?p=4154

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 >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://blogs.mathworks.com/loren/files/LeapSeconds_1.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“今天的帖子来自Peter Perkins,他是MathWorks开发团队的一员。在做过MATLAB的一些时间和日期函数后,MathWorks的人有时会问我一些关于日历和计时的问题。通常情况下是这样的:1月初(或7月初),我在午餐时盯着手机一会儿,脱口而出,“Bulletin C just published!”明年6月(或12月)不再有新的闰秒了!”然后,在尴尬的沉默和“别再这样了”的表情之后,某个新人说:“闰秒到底是什么东西?”我不是这方面的专家,但我的标准答案是这样开始的:“所以,事实证明地球正在减速。”接下来是故事的其余部分。Along the way, I'll show some uses of timetables and datetimes that are useful for working on time series data.Table of ContentsSo, it turns out that the earth is slowing down ... but

...read more >>

https://blogs.mathworks.com/loren/2021/05/06/what-is-a-leap-second-anyway/feed/ 9 https://blogs.mathworks.com/loren/2021/05/06/what-is-a-leap-second-anyway/?s_tid=feedtopost
气候数据工具箱:了解我们变化中的气候 http://feedproxy.google.com/~r/mathworks/loren/~3/It7DpXtpMUU/ https://blogs.mathworks.com/loren/2021/04/22/climate-data-toolbox-understanding-our-changing-climate/#comments 星期四,22 Apr 2021 12:35:57 +0000 罗兰美国舒尔 气候 地球科学 新闻 https://blogs.mathworks.com/loren/?p=4113

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 >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://blogs.mathworks.com/loren/files/SST_trend_short_final_1.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“今天我们的客座博主是Lisa Kempler,她在马萨诸塞州纳蒂克的MathWorks工作。Lisa支金宝app持研究人员和教育工作者,经常是地球科学家,帮助他们在他们的社区门户网站上建立和托管他们需要的工具,从工具箱到数据访问api到课程材料。Table of ContentsIntroduction to the Climate Data Toolbox Documentation Quick Links Example: Pacific Ocean Temperature Change Since 1950 Loading the Data Quick-Look Statistics and Mapping Temperature Trend Analysis The Answer: Where is the Temperature Change Statistically Significant? Additional Reading and ReferencesIntroduction to the Climate Data ToolboxHappy Earth Day!In the spirit of learning about our climate dynamics, in this 2021 Earth

...read more >>

https://blogs.mathworks.com/loren/2021/04/22/climate-data-toolbox-understanding-our-changing-climate/feed/ 4 https://blogs.mathworks.com/loren/2021/04/22/climate-data-toolbox-understanding-our-changing-climate/?s_tid=feedtopost
准备并行运行代码 http://feedproxy.google.com/~r/mathworks/loren/~3/t2A0rdsydnM/ https://blogs.mathworks.com/loren/2021/04/15/preparing-to-run-code-in-parallel/#comments 星期四,15 Apr 2021 12:19:42 +0000 罗兰美国舒尔 如何 平行 https://blogs.mathworks.com/loren/?p=4006

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 >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“/>

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 >>

https://blogs.mathworks.com/loren/2021/04/15/preparing-to-run-code-in-parallel/feed/ 9 https://blogs.mathworks.com/loren/2021/04/15/preparing-to-run-code-in-parallel/?s_tid=feedtopost
在R2021a版本中有一个参数 http://feedproxy.google.com/~r/mathworks/loren/~3/igOFA9GIshs/ https://blogs.mathworks.com/loren/2021/04/01/having-an-argument-in-release-r2021a/#comments 星期四,01 Apr 2021 12:16:52 +0000 罗兰美国舒尔 语言 新功能 https://blogs.mathworks.com/loren/?p=4046

Have you ever looked at code where you are calling a function with many arguments, many of which are strings, and find it hard to see what's going on? I know I have. And perhaps you too. In release... read more >>

< div > < img风格= "显示:块;保证金:汽车;max-width: 500 px; " src = " https://blogs.mathworks.com/loren/files/namedInputs21a_1.png " onError = " this.onerror =零;this.src = ' https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg ';“/>

Have you ever looked at code where you are calling a function with many arguments, many of which are strings, and find it hard to see what's going on? I know I have. And perhaps you too. In release R2021a, there is a new feature in the language that can help me out, in addition to the relatively new arguments block which I wrote about here. For making your own argument, you might want to watch this classic video.Make a plot to modifyLet's start by making a plot and annotating it.t = 0:0.1:10;y = sin(2*pi*60*t) + 0.2*randn(size(t));plot(t,y)xlabel("Time (in seconds)")ylabel("Signal (in Voltage)")title("Canonical signal")grid("on")Change the plot via name-value pairs (2020 and before)Now let's say I want to recreate the same plot but with

...read more >>

https://blogs.mathworks.com/loren/2021/04/01/having-an-argument-in-release-r2021a/feed/ 11 https://blogs.mathworks.com/loren/2021/04/01/having-an-argument-in-release-r2021a/?s_tid=feedtopost