Using each value in my array in an equation to see how the "y" value changes with "x"
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jonathan Miles
am 20 Nov. 2020
Kommentiert: Jonathan Miles
am 20 Nov. 2020
I have written a code that has all of my x values: x= [0.05:0.05:1.95]
I am attempting to run a code y=(4560*2)/((pi*2)*(16-x.^2))
but I run into an error frequently.
How can I fix this error and have my calculation run properly so that I will be able to see how my x values relate to my y values.
0 Kommentare
Akzeptierte Antwort
Setsuna Yuuki.
am 20 Nov. 2020
Bearbeitet: Setsuna Yuuki.
am 20 Nov. 2020
you should change this
y=(4560*2)./((pi*2)*(16-x.^2)) % / --> ./
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operators and Elementary Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!