plz rectyfy the code

if true
% code
end

1 个评论

KSSV
KSSV 2018-7-25
编辑:KSSV 2018-7-25
YOur h variable is a vector of length 1*10001. So the error. What should be your h value? It should be scalar I guess. Also code is very messy..you need to rewrite.

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2018-7-25
编辑:Jan 2018-7-25

0 个投票

Your code is nearly unreadable. Split the lines, apply a proper indentation (Ctrl-A, Ctrl-I in the editor) and insert meaningful comments.
Then please mention, why you assume that your code is broken.
I know, that this is not a working solution, but I consider it as potentially useful.

类别

在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by