my code has two problems. first ,y2 is15x1and y12 is 1x450 while the kafa gives me the result of 1x3812.how it is possible ot give this result.the second problem is it give error while plotting the (pt,kafa).vectors must be the same length
1 次查看(过去 30 天)
显示 更早的评论
this is my code
2 个评论
M
2018-1-16
编辑:M
2018-1-16
Of course it gives this error, because the vector pt is 1x450 and has not the same length as kafa.
I guess it is the way you compute kafa that is wrong, could you precise what results you expect for :
kafa=1:y2./1:y12
PS : you should post your code using the appropriate {}code section in your question.
Greg
2018-1-16
I've never tried vectors in the context of
kafa = 1:[1,2]:[8,9];
I can't imagine it does anything close to useful. My guess would be it chooses the first element of reach and ignores the rest.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!