Community Profile

Britney

Last seen: 3달 전 2013 이후 활성

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

배지보기

Content Feed

보기 기준

질문

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년 이하 전 | 답변 수: 1 | 0

1

답변

질문

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년 이하 전 | 답변 수: 1 | 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년 이하 전 | 0

질문

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년 이하 전 | 답변 수: 3 | 0

3

답변

질문

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년 이하 전 | 답변 수: 1 | 0

1

답변

질문

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년 이하 전 | 답변 수: 3 | 0

3

답변

질문

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년 이하 전 | 답변 수: 0 | 0

0

답변

질문

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년 이하 전 | 답변 수: 1 | 0

1

답변

질문

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년 이하 전 | 답변 수: 1 | 0

1

답변

질문

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년 이하 전 | 답변 수: 2 | 0

2

답변

질문

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년 이하 전 | 답변 수: 1 | 0

1

답변

질문

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년 이하 전 | 답변 수: 1 | 0

1

답변

질문

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년 이하 전 | 답변 수: 1 | 0

1

답변

질문

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년 이하 전 | 답변 수: 0 | 0

0

답변

질문

Undefined function 'Games' for input arguments of type 'double'. What am I doing wrong?
So I'm supposed to describe a function and I'm getting it all wrong. Can anyone see the problem? *function file.* funct...

9년 이하 전 | 답변 수: 1 | 0

답변