I almost never use Simulink, so I never saw this function before (requires Simulink). Try this at the command line: a = 1; b = 2.5; c = ‘A string’; d = {a, b,… 続きを読む >>
I almost never use Simulink, so I never saw this function before (requires Simulink). Try this at the command line: a = 1; b = 2.5; c = ‘A string’; d = {a, b,… 続きを読む >>
Ever try to delete some values in a vector by looping through from beginning to end? I have, and failed because the indexing got confused as the vector changed. Here is one solution to that class… 続きを読む >>
I just worked on a case that typifies a situation I see in MATLAB fairly often. Unexpected results are not necessarily wrong results. I am a big fan of the “sanity check”, where if… 続きを読む >>
Sometimes, when you are given a piece of code, it works well and you want to learn from it. Reading through the code is not always that helpful if done all at once. It is too much to process. … 続きを読む >>
This MATLAB video tutorial shows you how to reverse the direction of an aixs or to change an axis to log scale. if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function… 続きを読む >>
I work in technical support, so very often I get strange requests. Really strange. My first question is “Why do you want to do that?” The reason I ask this is very often new… 続きを読む >>
I very much advocate “No premature optimization” because until the code is running and pushed through the profiler, it is difficult to know where the bottlenecks of speed are. In this… 続きを読む >>
This video shows how to fix common errors in MATLAB when indexing into a vector or matrix in a for loop. if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded = false;}(function… 続きを読む >>
This short video shows how to change the tick labels on a plot. You might want to do this for bar plots, or just a regular plot that you want to customize. if (typeof(playerLoaded) ===… 続きを読む >>
Lots of MATLAB functions want strings as inputs. Very often MATLAB users want to use the value of a variable in that string. This video tutorial shows how to do that. if (typeof(playerLoaded)… 続きを読む >>
これらの投稿は著者に属するものであり、必ずしも MathWorks の見解を示すものではありません。