how to write equation in matlab ?
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
ajeet verma
il 22 Ago 2017
Risposto: khalid salim
il 8 Nov 2019
this is some different type of equation so i am confused how to write code for the equation in attached file, please help please see attached file
4 Commenti
Risposta accettata
Selva Karna
il 22 Ago 2017
Modificato: madhan ravi
il 6 Dic 2018
you have to write following equation:
Z=A^2+B^2-2ab
in MATLAB:
syms a b c z
z=(a^2+b^2-2*a*b)
0 Commenti
Più risposte (2)
khalid salim
il 8 Nov 2019
s = @(x) (1-0.4*(cos(x/100))).*(0<=x & x<=511);
x = linspace(0, 500);
R = s(x);
figure(1)
plot(x,R)
axis([xlim 0 1.5])
% intensity function
f=1/20;
x = linspace(0, 500);
I=@(x) (R(x).*sin(2*pi*f*x));
plot(x,I)
axis([xlim 0 1.5])
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!