How to fix Incorrect Code
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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.
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!