How to fix Incorrect Code
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi, my code is not giving me a valid output, but I am new to MatLab and am unsure how to fix it. The output I require is a voltage range given the input values shown.
LDR1 = input('smallest specified resistance value');
LRD2 = input('largest specified resistance value');
R1 = input ('resistance calculated from Code 2');
V = 5
function V1
V1 = V*R1/(R1+LDR1);
end
function V2
V2 = V*R1/(R1+LDR2);
end
Volt_Range = [V2 V1];
Help would be greatly appreciated.
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!