Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a character array \'pats\' with the following entries: , \'PHT45\', \'PHT

ID: 668730 • Letter: C

Question

Create a character array 'pats' with the following entries: , 'PHT45', 'PHT2', 'PHT273', ‘PHT61', 'PHT14', 'PHT423','PHT195' (these are anonymous patient IDs for a clinical study). Use two different methods to create this array.

Create the character string statement = 'Where is patient PHT14?'. Use strfind (read about this in the help) and the array pats you just created to locate the first occurrence of pats(5,1:5) in the string.

Create an anonymous function for [cos(3x) exp(-x/6)]. Create a range vector (any name you chose) as 0:0.1:10. Use the anonymous function in a composed plot statement to plot the function value at each value of the range vector against the range vector. Provide the plot in addition to your command line statements.

Explanation / Answer

Hi ,
I tried my best,Please let me know if you any issues.I will help you...

CODE:

Project

Employee

create table Project(projectno integer(11) PK,ProjectName varchar(11));

create table Employee(EmployeeNo integer(11) FK,WorksOn varchar(11) Unique);

char pats[]={'PHT45','PHT2','PHT273','PHT61','PHT14','PHT423','PHT195'};

char pats[7]={'PHT45','PHT2','PHT273','PHT61','PHT14','PHT423','PHT195'};

-----------Where is patient PHT14---------
string stmt=pats[4];

Vector v=new Vector();

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote