USer Defined Function problem
Mostra commenti meno recenti
Write a user-defined MATLAB function named PBTask4p1_f.m for the following math function with x the input argument and y the output: ?(?) = 3.2? 4 − 5? 2 − 7? The function should work for x being a scalar or a vector.
Use the function to calculate y(-5) and y(4) and display the results in command window b) Use the function to make a plot of the function y(x) for -5 ≤ x ≤ 5. Label the x-axis and y-axis of the plot like the one as follows.
I am new at Matlab ,Any help would be appriciated.Thank you
4 Commenti
Ameer Hamza
il 19 Apr 2020
Since you are new to MATLAB, this introduction to MATLAB functions will get you started: https://www.mathworks.com/help/matlab/ref/function.html
A M Saif Ben Kabir Amit
il 20 Apr 2020
Ameer Hamza
il 20 Apr 2020
What does not work? What is the error? Also, you function only need output 'w', why have you put 'z' in the output arguments.
A M Saif Ben Kabir Amit
il 20 Apr 2020
Modificato: Ameer Hamza
il 20 Apr 2020
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Annotations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!