![]() |
运行Matlab代码后数组不可用
当我运行以下代码时,vf的值将在每个迭代步骤中打印出来。但是在代码完全完成之后,当我键入plot(vf)时,我得到了错误:
Unrecognized function or variable 'vf'. 这是我的代码: global Y global vf vf=[]; c=0; for i=0:100:500 c=c+1; %%this is a function by which I read the data for Y readdata(i); vf(cnt) = mean(mean(Y .* Y)) end 有人可以帮我解决这个问题吗? [url=https://stackoverflow.com/q/59078796]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 22:42。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.