Nevermind, i got it. What i really wanted was a changing sin plot. I'm going to leave it here in case anyone needs it.
f = @(x,t) 1.5*sin(10*x-5*(t/10));
linkdata on
hold on;
for t=1:50
xi = -3*pi:pi/1000:pi;
plot(f(xi,t));
pause(.1);
clf('reset')
end
Hi guys, so I've never used MATLAB before, and i need to make a plot that changes constantly.
Let's say that i have Sin(x) from 0 to 3pi
Then i need it to change to a Cos(x) from 0 to 3pi
then to a Tan(x).
I could do it in other languaje like Php or c, but in MATLAB i have no idea. I...
Oh i wrote the #3 wroing, It's -.5x^3 not .333x^3.
#4 that's exactly what i did, sorry for the lack of explanation.
#1 is because you can't repeat words, so you have 4*4*3*3 and you have 6 posible orders:
v v c c
v c v c
v c c v
c v v c
c v c v
c c v v
or 6!.
Or you can apply the...
Homework Statement
So i have this 4 problems that i already answered, but i want to know if I am right.
1.- how many 4 letter words can be made with the letters of the word "emulsion" if you can use 2 vocals and 2 consonants.
My answer: 864 4*4*3*3*3!
2._ how many triangles can you make...
Ohhh i made a mistake in the code, i didn't think that the random number generator could generate more than 1 pair of the same kind of socks. You're both right, and THANKS A LOT FOR ALL YOUR HELP, especially to haruspex for having me so much patience.
The thing is that my physics teacher told me that the answer has to be near 28, that's why I'm so frustrated. I think it has something to do with the fact that you might be considering that the array of posibilities is a binary tree but you can't have a pair in your next move without another not...
Well, i did the Q(r,t) = Q(r,t+1)
and it gave me t=12.50842616853577.
I attached my Mathematica notebook with the procedure, but i can't find with I'm doing wrong.
So i equal them and replace the values in the full formula with all the factorials? You said at the beggining that you got 27 by doing this, how? i tried and it didn't reduced to a cuadratic t term.
I was checking my code and i noticed that i was doing something wrong. When i corrected it, it gave me the following:
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
20 7.1674927250735E-9
21 1.5051734722654E-7
22 1.6132372087358E-6...