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 commentaires

Stephen23
Stephen23 le 22 Août 2017
The image shows a parametric function, not an equation.
KSSV
KSSV le 22 Août 2017
That equation is indexing the matrices....read about MATLAB matrix indexing.
ajeet verma
ajeet verma le 22 Août 2017
how to write text both side on y axis of any graph as shown in attached file
Torsten
Torsten le 22 Août 2017
https://de.mathworks.com/help/matlab/ref/yyaxis.html
Best wishes
Torsten.

Connectez-vous pour commenter.

 Réponse acceptée

Selva Karna
Selva Karna le 22 Août 2017
Modifié(e) : madhan ravi le 6 Déc 2018

0 votes

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)

Plus de réponses (2)

khalid salim
khalid salim le 8 Nov 2019

0 votes

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by