Loren on the Art of MATLAB

Turn ideas into MATLAB

Note

Loren on the Art of MATLAB has been archived and will not be updated.

Posts 1 - 10 of 66

結果: Best Practice

Pattern from 1997: using feval 12

In the early 1990s, to avoid eval and all of its quirks (if you don't know about this, DON'T look it up - it's totally discouraged), we recommended using feval for evaluating functions that might... 続きを読む >>

Benefits of Refactoring Code 9

Benefits of Refactoring CodeI have seen a lot of code in my life, including code from many different people written for many different purposes, and in many different "styles". These styles range... 続きを読む >>

A Prime Case Study for Making MATLAB Code Go Faster 10

Today I'd like to welcome a guest blogger, Mike Croucher, who recently joined MathWorks as a Customer Success Engineer after a long career spent supporting academic computational research.Table of... 続きを読む >>

Remove Unneeded feval Calls 2

Recently I read a post about speeding up functions on Yair's blog. I'll take this opportunity, using Release 2020a, to use the updated profiler to investigate performance, particularly for the function feval.... 続きを読む >>

Faster Indexing in Tables, datetime Arrays, and Other Data Types 9

Today I'd like to introduce a guest blogger, Stephen Doe, who works for the MATLAB Documentation team here at MathWorks. In today's post, Stephen discusses how to take advantage of recent performance improvements when indexing into tables. The same approach applies to many different data types. While the release notes describe the performance improvements, in today's post Stephen also offers further advice based on a simple code example.... 続きを読む >>

Who or What Wins, er, Takes Precedence? 6

We've worried over the years as we build more features into MATLAB, particularly when we new file types and data types, about making sure users are accessing the artifacts they intend to use.... 続きを読む >>

Debugging Grouped Operations

Today's guest post comes from Sean de Wolski, one of Loren's fellow Application Engineers. You might recognize him from MATLAB answers and the pick of the week blog!... 続きを読む >>

Accept String Inputs in Your Code 4

Today I'd like to introduce a guest blogger, Stephen Doe, who works for the MATLAB Documentation team here at MathWorks. In today's post, Stephen discusses how, and why, you might want to update your code to accept string arrays as inputs.... 続きを読む >>

Clearing the Air in Your MATLAB Session 13

I have, over time, changed when, where, and how I "clean up" my MATLAB session. You may want to update your strategy as well.... 続きを読む >>

Save Yourself! 5

Today I am going to talk a little about code development and appropriate hygiene that goes with it. Why? Well, have you ever ended up with a really sick feeling after spending hours on something, only to realize that it's been deleted? It's happened to me, but never again!... 続きを読む >>

Posts 1 - 10 of 66