Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
this is my code
  2 Kommentare
M
M am 16 Jan. 2018
Bearbeitet: M am 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
Greg am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by