| title | Your Prompt Title Here | |||||
|---|---|---|---|---|---|---|
| description | One-line description of what this prompt does | |||||
| tags |
|
|||||
| release | All releases / R2024a+ / Requires Toolbox Name | |||||
| notes |
Brief description (1-2 sentences) explaining what this prompt does and why it's useful.
- Tags:
matlabtag1tag2tag3 - MATLAB Release: All releases / R2024a+ / Requires specific features
- Required Toolboxes: None / List toolboxes
[Your actual prompt text goes here]
This is what the user will copy and paste into their AI coding assistant.
Include:
1. Clear instructions
2. Numbered steps or requirements
3. Placeholders like [DESCRIBE YOUR DATA] or [PASTE CODE HERE]
4. Expected output format
5. Any specific constraints or requirements
[Placeholder for user input]
- First tip: How to customize the prompt for different use cases
- Second tip: What to specify for best results
- Third tip: Common pitfalls to avoid
- Fourth tip: How to iterate on results
[Show the prompt filled in with a simple, concrete example]
Include specific values for all placeholders.
[Show the prompt with more complex requirements]
Demonstrate how to use advanced features.
[Show the prompt for a specific application domain]
E.g., signal processing, image analysis, control systems, etc.
Brief description of what the AI should generate. You can include:
- Code structure
- Function signatures
- Plot types
- Documentation format
Example (optional):
% Example of expected output structure
function result = exampleFunction(input)
% Documentation
result = process(input);
endIf applicable, show common code patterns or approaches the AI might use:
% Pattern 1: Common approach
code_example();
% Pattern 2: Alternative approach
another_example();For simpler use cases, use this variation:
[Simplified prompt text]
For more comprehensive results, use this variation:
[Extended prompt text with additional requirements]
- Practice 1: Recommendation for using this prompt effectively
- Practice 2: How to validate results
- Practice 3: When to use vs when to modify
Problem: Common issue users might encounter Solution: How to fix it
Problem: Another common issue Solution: Resolution steps
- Related Prompt 1 - Brief explanation of relationship
- Related Prompt 2 - Why user might want this next
- Related Prompt 3 - Complementary functionality
- MATLAB Documentation: Relevant Topic
- MATLAB Documentation: Related Function
- MathWorks Blog: Relevant Article (if applicable)
Remove this section before submitting!
- Title: Use action verbs (Design, Create, Analyze, Optimize, Generate, etc.)
- Description: One clear sentence explaining the prompt's purpose
- Tags: Always include
matlabplus specific feature/toolbox tags - Release: Be specific about version requirements
- Notes: Leave blank for now (used for special considerations or warnings)
These sections can be omitted if not applicable:
- Expected Output
- Common Patterns
- Variations
- Best Practices
- Troubleshooting
Keep only sections that add value for your specific prompt.
Before submitting:
- Tested with at least one AI coding assistant
- All placeholders clearly marked with [BRACKETS]
- Includes at least one usage example
- Release requirements specified
- Tags follow conventions
- Related prompts linked (if applicable)
- No typos or formatting errors
- Added to category README
Look at existing prompts for inspiration: