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 view (last 30 days)
Show older comments
this is my code
2 Comments
M
on 16 Jan 2018
Edited: M
on 16 Jan 2018
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
on 16 Jan 2018
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.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!