MATLAB: Write a script that will prompt the user for a vector and sort in a vector.

homeworkانشاء مصفوفه وطباعه ارقام الفرديه

Write a script that will prompt the user for a vector and sort in a vector odd . Then, print the odd numbered elements in the vector.
i need code for this

Best Answer

You did not ask a question. I'm sure you just want us to correct your code, since I'm sure your course doesn't want you to turn in someone else's work as your own. Please Read this link on Homework Help and then ask a question about your code. Then we can help you. In the meantime, check out functions like input(), sort(), rem() or mod(), and fprintf().
Related Question