문제

Here is my problem: I have an application in C++ and I use Matlab to visualize my results.

The code matlab is :

function y = plotArray(A)
plot(A)
end

I have create the library with mcc. My data change with the time and want to update the plot and not close the windows and open a new one.

I've looked at the linkdata function available in matlab, but it is unsupported in the matlab complier.

Do you have any ideas? Thank you

도움이 되었습니까?

해결책

Would the clf command do what you want?

function y = plotArray(A)
clf %this clear the previous figure, without opening a new one
plot(A)
end
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top