Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NumberOfUDL = input('How many UDL are acting on a structure? - ');
- formatSpec = ('Please add the value of UDL in Newtons for ? %d \n (Enter negative value if load is acting downwards) - ');
- UDLM = zeros(1,NumberOfUDL);
- S = zeros(1,NumberOfUDL);
- E = zeros(1,NumberOfUDL);
- nforUDLM = 0;
- while nforUDLM < NumberOfUDL
- nforUDLM = nforUDLM+1;
- str = sprintf(formatSpec,nforUDLM);
- prompt = str;
- UDLM(nforUDLM) = input(prompt);
- string = sprintf('Please add starting point of the UDL ? %d - ',nforUDLM);
- prompt = string;
- S(nforUDLM) = input(prompt);
- string = sprintf('Please add ending point of the UDL ? %d - ',nforUDLM);
- prompt = string;
- E(nforUDLM) = input(prompt);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement