Question

I have some mathlab questions want to ask, how to save f(-.05) and f(1.1) that two product in one file?

a52x4 3x3 - 2x2 x f(x) (30x) 1-coS Calculate f(-0.5) and f(1.1) and save their product as A1.dat

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hey,

Below is the answer to your question

clc
clear all
close all
f=@(x) x^5-2*x^4+3*x^3-2*x^2+x-1-cos(30*x);
a=f(-0.5);
b=f(1.1);
a*b
file=fopen('A1.dat','w');
fprintf(file,'f(%.1f)*f(%.1f)=%.20f\n',-0.5,1.1,a*b);
fclose(file);

f (-0.5) f(1.1)--0.65297430720306171000

Kindly revert for aany queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
I have some mathlab questions want to ask, how to save f(-.05) and f(1.1) that two...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I have a text file with some quotes and I want to use php or laravel...

    I have a text file with some quotes and I want to use php or laravel to pull one quote at a time and display it to my website upon every page refresh. How do I use PHP or Laravel to pull one quote at a time from the text file (saved in my project as quotes.txt) and display it on my webpage? I am also open to using ajax and/or javascript.

  • You say you want to calculate some F statistics? Well, you've come to the right place. Use the following data fo...

    You say you want to calculate some F statistics? Well, you've come to the right place. Use the following data for Questions 6-10. There are four people per cel. The total sum of squares is 1968, and the within group sum of squares is 1080. The dependent variable is test score. The independent variables are state and major. If for any test, the degrees of freedom aren't on the table, use the closet value the table has. CA ND CN...

  • Answer the following questions: (a) Create a m-file for this fix) and save it as f.m. Write the contents of the (b)Use Matlab to graph f(x) and the difquo of f(x), using linspace (0, 50) on two d...

    Answer the following questions: (a) Create a m-file for this fix) and save it as f.m. Write the contents of the (b)Use Matlab to graph f(x) and the difquo of f(x), using linspace (0, 50) on two different graphs. You may take h ,001 to create the difquo function. (i)Conmands to sketch f(x) (i) Commands to sketch its difquo function (ii) Show two labeled graphs: one of fix) and one of its difquo function: Mark the axes. (iv)What is the...

  • please help me answer these two questions i have only one more question to ask Chapter...

    please help me answer these two questions i have only one more question to ask Chapter 09, Problem 005 What are (a) the x coordinate and (b) the y coordinate of the center of mass for the uniform plate shown in the figure if L 16 cm? 2L AL 31 4L 2L (a) Number Units (b) Number Units

  • H(X) means entropy of X. I have some questions when solving this problem. (a) Refer to...

    H(X) means entropy of X. I have some questions when solving this problem. (a) Refer to similar questions, H(Z|X)=H(Y|X) if Z=X+Y, I want to know whether we can simplify H(X|Z)? (b) if Px(X=0)=0.5, Px(X=1)=0.5, Py(Y=0)=0.5, Py(Y=-1)=0.5, if they are not independent, can I just give random variable Z with its probability distribution as P(Z=0)=1, P(Z=1)=0, P(Z=-1)=0. (c)Plus, I also want to know the answer to the original problem with 4 questions. Let X and Y be two random variables defined...

  • I have some questions for this example I figured out the rest but these are the...

    I have some questions for this example I figured out the rest but these are the ones I need help learning What is the research hypothesis? What decision should be made regarding the null hypothesis? Are the results statistically significant? Name on potential confounding variable for this study? Some have claimed that children of divorced parents are not as socially well-adjusted as children of parents who are married. To test this idea, Dr. Curious set up a study with two...

  • Hi, I have answers some of the questions,, I just have trouble with number 3, 6...

    Hi, I have answers some of the questions,, I just have trouble with number 3, 6 and 7 and this is about making a graph.. For this graph we are just using a simple graphing paper and if you could teach me how to graph these points and following the requirements in the questions. thank you! Water Volume and Mass 1. Position a meterstick vertically on a flat surface, such as a wall or the side of a lab bench....

  • Unix HOMEWORK HELP!! Simple Multiple Choice.   I have answered these questions, but I want to ask...

    Unix HOMEWORK HELP!! Simple Multiple Choice.   I have answered these questions, but I want to ask online, to get second feedback and make sure I am on the right page What is the diffference bettween a willd card and a regular expression? a.) A willd carrd is the * chharacter, butt a rregular excpression caan usse morre symbols. b.) Wild cards are pattterns expandded by the shhell. A reggular expression is a pattern used by commands, internally. c.) There is...

  • Please answer the 2 blanks in Q1, show full working!! I want to know how this...

    Please answer the 2 blanks in Q1, show full working!! I want to know how this works, thanks. This is a discrete math question. Consider the following program specification for evaluating a polynomial anxh + an- xn-1 + ... + a1x + ao at x = c: Input: c, 20, 21, ..., an ER Output: anch + an-1ch-1 + ... + a1c + ao Consider the following two implementations of this program specification: Implementation 1: Polynomial_1 Polynomial_1(c, 20, 21, ...,...

  • There is 3 questions I have no idea how to solve. I want to know the...

    There is 3 questions I have no idea how to solve. I want to know the steps if anyone can help. 1) How many mg of medication would you need to prepare 3000 ml of 1:2500 solution? 2) How many ml of 5% solution are needed to prepare 10 ml if 1:50 solution? 3) Ordered: meidcatid t.i.d for 33 lb child Label: medication 15mg/kg/day How many mg can the child receive in one day? How many mg can the child...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT