Community Profile # Britney

Last seen: 1 year ago Active since 2013

Just a girl that loves chemistry. Professional Interests: Chemistry for life<3

#### Statistics

• #### Content Feed

View by

Question

I have a for loop code to calculate matrix multiplication. What is missing?
I want to create a code that calculates y=A*x for two matrices. I wrote a code from how a school book suggested and I'm stuck an...

8 years ago | 1 answer | 0

### 1

Question

What do the constants h,c and k do to the function??
figure('Name','Black Body','Menu','none','NumberTitle','on','Position',[500 100 350 450]) set(gcf,'Color',[0.6 1.0 1.0]) ...

8 years ago | 1 answer | 0

### 1

What does the value s do in my code??
Is that it goes from -10 to -1 from xv=linspace(xa, -s) ? But why not from -10 to -2? That has to be equated to axis...

8 years ago | 0

Question

What does the value s do in my code??
clear clf f=@(x)((x.^2)-1)./((x.^2)-4); xa=-10; xb=-2; s=1; ya=-5; yb=5; xv=linspace(xa, -s); xh=linspace(s ,x...

8 years ago | 3 answers | 0

### 3

Question

Solved the graph. Drawed the function. How to plot the x solution marked with a ring...
Okay, I feel stupid for asking this question but it has annoyed me to far. I have drawn a graph and solved the f(x)=0 and I k...

8 years ago | 1 answer | 0

### 1

Question

Drawing a graph from a rational function. What is the problem in my code?
I want to draw the graph of function f(x)=x^2-1/x^2-4 This is my code: clear clf f=@(x)((x.^2)-1)./((x.^2)-4); xa=-10;...

8 years ago | 3 answers | 0

### 3

Question

Why is the answer in my command window multiplying every time I press run??
So I got the correct code..I think but when I press run the answer first showed up as x2 and when I pressed run the answer showe...

8 years ago | 0 answers | 0

### 0

Question

How to plot a linear approximation next to a function?
Hey, I have a function f=@(x)0.5*(x-2).^2-2*cos(2*x)-1.5; And I want next to the function f(x) to plot: f(-1)+f'(...

8 years ago | 1 answer | 0

### 1

Question

What is wrong with my code for the bisection method!!?
So I have this code I need too use on my a function. I have made m. function file with the function I want to calculate. ...

8 years ago | 1 answer | 0

### 1

Question

Create a help text that shows in command window. How to??
Hey guys, So how to you create a help text for a function so that when you write in the command window help my_function a te...

8 years ago | 2 answers | 0

### 2

Question

What is wrong with my code for the bisection method?
x=my_bisect(@(x)x-2.5).*exp(-0.5*(x-2).^2)+0.2;[-1,0],1e-5) a=I(-1); b=I(0); msg=sprintf('invalid choice of...

8 years ago | 1 answer | 0

### 1

Question

how do you multiply f(-1)*f(0) in matlab?
Hey guys, Annoying problem...but I'm new to matlab. I have a function f=@(x)(x-2.5).*exp(-0.5)*(x-2).^2)+0.2. I want to c...

8 years ago | 1 answer | 0

### 1

Question

The variabel 'total' seems to change size on every loop....-A while loop problem
I can't see what the problem is with my while loop. I'm trying to write a while loop to calculate a converging serie. I want the...

9 years ago | 1 answer | 0

### 1

Question

How to use a function file in a 'for loop'?
I'm supposed to write a function of a polygon "train". It's several dots on a graph that are connected with lines between. I get...

9 years ago | 0 answers | 0