Azzera filtri
Azzera filtri

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 visualizzazione (ultimi 30 giorni)
this is my code
  2 Commenti
M
M il 16 Gen 2018
Modificato: M il 16 Gen 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 il 16 Gen 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.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by