Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

What is wrong with my coding?

1 visualización (últimos 30 días)
MR JUSTIN ACHARJEE Sumanta
MR JUSTIN ACHARJEE Sumanta el 20 de En. de 2022
Cerrada: Rik el 20 de En. de 2022
Enter the magnitude and the position of the loading factors lateral to the beam axis, including point loads, moments and uniformly distributed loads. The number of the loading factors of the each kind must be defined by a user interactively. The input data control must be implemented.
%%Q1b
clear;clc;
% Get the value of the point load acting on the beam along with its positions
npl = input('Enter the number of point loads acting on the beam');
n=0
while((n < npl))
p(n+1) =input('Enter the point load')
loc(n+1) = input('Enter the distance of point load from left end')
% Check if the point loads are present inside the beam
if (loc(n+1)>l)
sprintf(' The point load cannot be outside the span of beam')
loc(n+1) = input('Enter the distance of point load from left end')
end
n = n+1
end
% Get the value of the uniformly distributed loads acting on the beam along with its span
nud = input('Enter the number of uniformly distributed loads acting on the beam');
q=0
while((q < nud))
ud(q+1) =input('Enter the intensity of loading')
locud(q+1) = input('Enter the distance of start of udl from left end')
spanud(q+1) = input('Enter the span of udl')
q = q+1
end
  1 comentario
Ankit
Ankit el 20 de En. de 2022
what kind of error you are getting? you questions/problems are not clear

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by