Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Average value through checkboxes

1 visualización (últimos 30 días)
Badr Sahib
Badr Sahib el 11 de Abr. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have the following problem. I have 4 checkboxes (sensors 1 to 4) to check the Radiation data. If value = 1 plot / value = 0 delete plot. Now if 2 or 3 checkboxes are selected (value ==1), I would like to form a mean value by another checkbox.
Danke im voraus
function checkbox1_Callback(hObject, eventdata, handles) load data.mat axes(handles.axes10); if get(handles.checkbox1,'Value') == 1
p1=plot(data.A3_7A3_7_PYRANOMETER_1(300:1320),'DisplayName','Pyranometer1');hold on
Av1=data.A3_7A3_7_PYRANOMETER_1(300:1320);save('Av1.mat','Av1')
legend('show');set(legend,'Color',[0.15 0.15 0.15],'TextColor',[1 1 1],'FontSize',8,'LineWidth',1);
xlabel('Time'), ylabel('W / m²');title('Einstrahlung-Sensoren','Color','w','FontSize', 10,'FontWeight','bold')
assignin('base','p1',p1);assignin('base','Av1',Av1)
else
p1=evalin('base','p1');
delete(p1)
evalin( 'base', 'clearvars p1' ); evalin( 'base', 'clearvars Av1' )
end
  2 comentarios
Sindhu Priya
Sindhu Priya el 18 de Abr. de 2017
Hi Badr Sahib,
Can you explain what kind of problem you are facing ?
Regards,
Sindhu
Jan
Jan el 18 de Abr. de 2017
@Badr Sahib: What is your question?

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by