photo

Britney


Last seen: mer än 2 år ago Active since 2013

Followers: 0   Following: 0

Message

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

Statistics

  • Thankful Level 3

View badges

Feeds

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

ungefär 10 år 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]) ...

ungefär 10 år 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...

ungefär 10 år 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...

ungefär 10 år 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...

ungefär 10 år 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;...

ungefär 10 år 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...

ungefär 10 år 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'(...

ungefär 10 år 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. ...

ungefär 10 år 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...

ungefär 10 år 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...

ungefär 10 år 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...

ungefär 10 år 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...

ungefär 11 år 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...

ungefär 11 år 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...

ungefär 11 år ago | 1 answer | 0

1

answer