Why wont Matlab plot these two arrays?
Mostrar comentarios más antiguos
clc;
fprintf('Please select the .txt file with your values\n');
pause(1);
clc;
fileName = uigetfile('*.txt');
load(fileName);
inputValues = load(fileName);
maxStress2 = zeros(1,size(inputValues,1));
for n = 1:size(inputValues,1)
maxStress2(1,n) = momentStress2(inputValues(n,1),inputValues(n,2), ...
inputValues(n,3),inputValues(n,4),inputValues(n,5),inputValues(n,6));
end
for n = 1:size(inputValues,1)
y = (maxStress2(n));
x = inputValues(n,n);
plot(x,y);
If I use disp(x) and disp(y) I get the values I want as the same size array... so why cant they be plotted?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!