NumPy plot migration
- Input
- x = np.linspace(0, 1, 50); plt.plot(x, y)
- Method
- Remove Python imports, map np.linspace and plt.plot.
- Formula
- Python line + ordered syntax rule -> MATLAB line + warning note
- Intermediate steps
- Normalize line endings and trim empty wrapper text.
- Apply deterministic rule or template choices only.
- Add warnings for unsupported syntax, semantic assumptions, and verification steps.
- Final result
- MATLAB code uses x = linspace(0, 1, 50); and plot(x, y);
- Interpretation
- The result is useful as a migration or documentation aid after human review.
- Limitation
- The helper does not run tests, inspect workspace variables, or guarantee numeric equivalence.