Cannot Plot the graph, Matrix dimensions must agree for R and T
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
clear
clc
%% define variable
p = 500 * 10^3;
a = 0.2;
b = 0.25;
r = [0.2 : 0.005 : 0.25];
R = [-p * (a^2 / (b^2 - a^2)) * ((b^2 / r.^2) - 1)];
T = [p * (a^2 / (b^2 - a^2)) * ((b^2 / r.^2) + 1)];
figure(1)
plot(r, R, 'r')
figure(2)
plot(r, T, 'B')
0 comentarios
Respuestas (1)
Sabyasachi
el 17 de Oct. de 2022
% This may help you.
p = 500 * 10^3;
a = 0.2;
b = 0.25;
r = 0.2 : 0.005 : 0.25;
R = -p * (a^2\(b^2-a^2))*((b^2\r.^2)-1);
T = p * (a^2\(b^2-a^2))*((b^2\r.^2)+1);
figure(1)
plot(r, R, 'r')
figure(2)
plot(r, T, 'B')
0 comentarios
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!