how do I trun my math equation into math lab code ?
Mostrar comentarios más antiguos
t= (x1-X2)/ sqrt[(s1)^2/N1 +(S2)^2/N2]; Respuestas (1)
Star Strider
el 14 de Feb. de 2021
It would appear that you just did exactly that:
t= (x1-X2)/ sqrt[(s1)^2/N1 +(S2)^2/N2];
The only thing you need to do is to change the square brackets [] to parentheses ():
t= (x1-X2)/ sqrt((s1)^2/N1 +(S2)^2/N2);
If the arguments are vectors, it will also be necessary to use element-wise operations (with the ‘dot operator’) explained in Array vs. Matrix Operations.
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!