Community Profile

photo

Britney


Last seen: 2 years ago Active since 2013

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

Statistics

  • Thankful Level 3

View badges

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...

9 years ago | 1 answer | 0

1

answer

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]) ...

9 years ago | 1 answer | 0

1

answer

Answered
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...

9 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...

9 years ago | 3 answers | 0

3

answers

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...

9 years ago | 1 answer | 0

1

answer

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;...

9 years ago | 3 answers | 0

3

answers

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...

9 years ago | 0 answers | 0

0

answers

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'(...

9 years ago | 1 answer | 0

1

answer

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. ...

9 years ago | 1 answer | 0

1

answer

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...

9 years ago | 2 answers | 0

2

answers

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...

9 years ago | 1 answer | 0

1

answer

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...

9 years ago | 1 answer | 0

1

answer

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...

10 years ago | 1 answer | 0

1

answer

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...

10 years ago | 0 answers | 0

0

answers

Question


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...

10 years ago | 1 answer | 0

1

answer