defining the range of an inverse function
Ältere Kommentare anzeigen
To plot function y1=3*exp(x./3+1); between x=[0:0.01:1]; using the hold on and axis equal add the inverse y2=3*log(x./3)-3; on the same graph between x values that come from the range of the original F(x) being x2=[3e^1/3:0.01:3e^4/3];, keep getting the error ;vectors must be same length, is there a better way I can define x2?
Thanks in advance for any assistance.
>> plot(x,y1)
>> hold on
>> axis equal
>> plot(x1,y2)
Error using plot
Vectors must be the same length.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!