arkadaşlar hoca matlabdan ödev verdi..yardımınıza ihtiyacım var.. yaptığımız deneyler şunlar ; 1. Create the function or function that asks the user to enter an expression (of function data) and plots it afterwards, in an infinite loop. For example, the function prompts the user with Enter function : and the user enters the expression Enter function : sin(0:0.1:2*pi) and after plotting the function it will prompt again Enter function : When user just presses enter without typing in any data, the function exits the loop and terminates. Use while loop, isempty and plot functions in your code. Report what you did and what you got.
2. Try to display two user entered functions on the same plot. For that you need to handle 2 dimensional arrays. For example plot([0:10; 10:-1:0]') puts a large cross on the plot area.
3. Enter additional code to ask the user is he/she is sure of exiting, when he/she presses enter without any data. Exiting. Are you sure? : If user presses n or N, the loop continues. Otherwise it terminates.
4. Use inputdlg function instead of input function.
ve hocanın bizden istediği şeylerde bunlar ; 1. How would display each function on its own plot? (read help file) 2. How would you display horizontal axis values correctly?
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.
1. Create the function or function that asks the user to enter an expression (of function data) and plots it
afterwards, in an infinite loop. For example, the function prompts the user with
Enter function :
and the user enters the expression
Enter function : sin(0:0.1:2*pi)
and after plotting the function it will prompt again
Enter function :
When user just presses enter without typing in any data, the function exits the loop and terminates.
Use while loop, isempty and plot functions in your code.
Report what you did and what you got.
2. Try to display two user entered functions on the same plot. For that you need to handle 2 dimensional
arrays. For example plot([0:10; 10:-1:0]') puts a large cross on the plot area.
3. Enter additional code to ask the user is he/she is sure of exiting, when he/she presses enter without any
data.
Exiting. Are you sure? :
If user presses n or N, the loop continues. Otherwise it terminates.
4. Use inputdlg function instead of input function.
ve hocanın bizden istediği şeylerde bunlar ; 1. How would display each function on its own plot? (read help file)
2. How would you display horizontal axis values correctly?
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.