matlab plot in real time
Mostra commenti meno recenti
just a really simple problem, how can I plot this diagram in real time. I want those red crosses plotted on to my graph one by one rather than all of them at the same time.
A=[1:10];
B=[1:10];
B=0;
for B=[1:10]
temp=A(B);
B2=num2str(B);
disp(['Reading number=',B2,'temperature=',temp2])
plot(A,'rx')
pause(0.2)
end

Risposta accettata
Più risposte (2)
Joseph Cheng
il 11 Dic 2015
no idea what you're doing with A or B especially with defining B but then using it as the indexer in the for loop but get what you can from the example:
A=[1:10];
figure(1),hold on,axis([0 10 0 10])
for ind=[1:10]
plot(ind,A(ind),'rx')
pause(.1)
end
anil simsek
il 6 Mag 2020
0 voti
I have Arduino code, I want to draw it instantly in matlab. Can you help me ?
1 Commento
Geoff Hayes
il 7 Mag 2020
anil - you will need to post some of your code so we can get an idea of what you are attempting. Also,this isn't an answer to the original question so please delete and add as a comment or create your own question.
Categorie
Scopri di più su Graphics Performance in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!