I have a plot of K vs E. Both K and E are matrices of different dimensions. if I want to plot (dk/dE,E) , but all the time it's showing an error. I have tried like this
dK=diff(K)./diff(E);
dE=diff(E);
dK_dE=dK/dE;
plot(dK./dE,E(1:end-1));

댓글 수: 1

Walter Roberson
Walter Roberson 2016년 5월 18일
Please give us an idea of how the sizes correspond. How do you know which entries in K correspond to which entries in E?

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2016년 5월 18일

0 개 추천

dK = gradient(K);
dE = gradient(E);
dK_dE = dk ./ dE;
plot(dK_dE, E)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2016년 5월 17일

답변:

2016년 5월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by