Error when trying to Publish from m file
Ältere Kommentare anzeigen
I am having trouble when trying to publish the code below when it is in a m file. Instead of the graph that I expect I get an error message:
Error using evalin Undefined function 'Problem' for input arguments of type 'char'
TempF = 32 : 3.6 : 93.2;
TempC = 5 / 9 * (TempF - 32);
rho = 5.5286 * 10.^-8 * TempC.^3 - 8.5016 * 10.^-6 * TempC.^2 + 6.5622 * 10.^-6 * TempC + 0.99987;
plot(TempC, rho)
xlabel('Temperature in Degrees Celcius')
ylabel('Density of Freshwater (g/cm^3)')
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Scripts 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!