Results for
- Computing modular inverses safely, even for very large numbers
- Solving linear Diophantine equations
- Simplifing fractions or finding nteger coefficients without using symbolic tools
- Avoiding loops (EEA can be implemented recursively)
- You can cache results to avoid recomputation.
- You can accumulate data across multiple calls.
- But it resets when Cody or MATLAB restarts.
- Solving energy balance equations
- Finding intersection points of nonlinear models
- Determining parameters from experimental data
= 25 W- k = 0.5 W/K
- ϵ = 0.8
- σ = 5.67e−8 W/m²K⁴
- A = 0.1 m²
= 250 K
- The helper function calls itself until the base case is reached.
- Logical indexing into a cell array (k>0) act as an 'if' replacement.
- MATLAB allows nested functions to share variables and functions (zero), so you can keep state across calls.
- Replace 'if' with logical indexing into a cell array.
- Replace for/while with recursion.
- Nested functions are local and can access outer variables, avoiding global state.
Guidelines & Tips
- Product or Feature: Clearly state which product (e.g., MATLAB, Simulink, a toolbox, etc.) or specific feature your idea relates to.
- The Problem or Opportunity: Briefly describe what challenge you’re facing or what opportunity you see for improvement.
- Your Idea: Explain your suggestion in detail. What would you like to see added, changed, or improved? How would it help you and other users?
- Examples or Use Cases (optional): If possible, include an example, scenario, or workflow to illustrate your idea.
- Related Posts (optional): If you’ve seen similar ideas or discussions, feel free to link to them for context.
Ready to share your idea?
Over the past several months our communities have been the target of ongoing spam attacks. Spam is a common issue online and spam prevention is something we include as part of our standard development processes. The most recent attempts appear to be specifically targeting our sites with a combination of manual and automated attacks, probing with a variety of content attempting to bypass our filters. Regrettably, the attacks sometimes make it through our defenses, cluttering your inboxes and the content in our communities.
Rest assured, we are dedicated to continuing to evolve our tools and improve our capabilities to meet the goal of eliminating all spam in our communities. We appreciate your patience and understanding as we work to get there.
Sincerely,
David Wey
MATLAB Communities Development Manager
MathWorks, Inc.
