An array for multiple LHS assignment cannot be empty?
显示 更早的评论
I'm pretty new to MATLAB and I need to use a graphing function inside of another function. Both are user-defined functions.
function 1:
function [ymax,Timpact] = Projectile2(v0,angle,y0)
blah blah finds ymax and Timpact blah blah
blah blah makes t and y vectors blah blah
[] = AnimatedPlot(t,y,0.1);
function 2:
[] = AnimatedPlot(t,y,p);
blah blah graphs as an updating plot that pauses for (p) blah blah
When I run the first function, I receive this error message: An array for multiple LHS assignment cannot be empty.
What should I do to fix this problem and be able to graph my first points using the second function?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!