亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? s_parmosm2.m

?? 帶電粒子在電磁場中運動軌跡模擬程序
?? M
?? 第 1 頁 / 共 3 頁
字號:
    factor_velocity = 10^value;
end

% --- Executes during object creation, after setting all properties.
function sliderVel_CreateFcn(hObject, eventdata, handles)
% hObject    handle to sliderVel (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor',[.9 .9 .9]);
end
    global_variables;
    value = 5.0;
    set(hObject,'Value', value);
    factor_velocity = 10^value;
end

% --- Executes on button press in rbuttGuideCenter.
function rbuttGuideCenter_Callback(hObject, eventdata, handles)
% hObject    handle to rbuttGuideCenter (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of rbuttGuideCenter
    global_variables;
    guide_set = get( hObject, 'Value' );
end

% --- Executes on selection change in popElecField.
function popElecField_Callback(hObject, eventdata, handles)
% hObject    handle to popElecField (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popElecField contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popElecField

    global_variables;
    
    switch get(handles.popElecField, 'Value')
        case EFIELD_NONE                                % no electric field is selected
            set(handles.stextElecField, 'Visible', 'Off');
            set(handles.edtElecField, 'Visible', 'Off');
            
        case EFIELD_CONSTANT                            % constant electric field in x direction
            set(handles.stextElecField, 'Visible', 'On');
            set(handles.stextElecField, 'String', 'Define electric field strength [V/m]');
            set(handles.edtElecField, 'Visible', 'On');
            set(handles.edtElecField, 'String', '100.0');
            
        case EFIELD_CUSTOM                              % custom electric field
            set(handles.stextElecField, 'String', 'Define electric field [Ex, Ey, Ez]. Instead of the coordinates xyz use R(1)R(2)R(3). Example: [ 0, (R(1)+R(2))/Sqrt(R(1)^2+R(2)^2+R(3)^2), R(3)/Sqrt(R(1)^2+R(2)^2+R(3)^2) ]');
            set(handles.stextElecField, 'Visible', 'On');
            set(handles.edtElecField, 'Visible', 'On');
            set(handles.edtElecField, 'String', '[ 0, 0, 0 ]');                           
    end

end

% --- Executes during object creation, after setting all properties.
function popElecField_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popElecField (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
end


function edtElecField_Callback(hObject, eventdata, handles)
% hObject    handle to edtElecField (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edtElecField as text
%        str2double(get(hObject,'String')) returns contents of edtElecField as a double
end

% --- Executes during object creation, after setting all properties.
function edtElecField_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edtElecField (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
end


function edtInitPos_Callback(hObject, eventdata, handles)
% hObject    handle to edtInitPos (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edtInitPos as text
%        str2double(get(hObject,'String')) returns contents of edtInitPos as a double
end

% --- Executes during object creation, after setting all properties.
function edtInitPos_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edtInitPos (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
end


function edtInitVel_Callback(hObject, eventdata, handles)
% hObject    handle to edtInitVel (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edtInitVel as text
%        str2double(get(hObject,'String')) returns contents of edtInitVel as a double
end

% --- Executes during object creation, after setting all properties.
function edtInitVel_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edtInitVel (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
end


function edtMass_Callback(hObject, eventdata, handles)
% hObject    handle to edtMass (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edtMass as text
%        str2double(get(hObject,'String')) returns contents of edtMass as a double
end

% --- Executes during object creation, after setting all properties.
function edtMass_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edtMass (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
end


function edtCharge_Callback(hObject, eventdata, handles)
% hObject    handle to edtCharge (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edtCharge as text
%        str2double(get(hObject,'String')) returns contents of edtCharge as a double
end

% --- Executes during object creation, after setting all properties.
function edtCharge_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edtCharge (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end
end

% --- Executes on button press in pbuttGoSimulate.
function pbuttGoSimulate_Callback(hObject, eventdata, handles)
% hObject    handle to pbuttGoSimulate (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

    global_variables;
    
    switch status
        case STATUS_STOP
            % start the simulation
            % simulation is stopped and it has to be initialized and
            % restarted
            
            % prepare all simulation information
            prepare_information( handles );
            
            if field_BfunctionOK == 1 & field_EfunctionOK == 1
                % start initialization
                initialization( handles );

                % change the text on button to "Pause Simulation"
                set(handles.pbuttGoSimulate, 'String', 'Pause simulation' );
                pause(0.1);
                % change status to STATUS_RUNNING
                status = STATUS_RUNNING;

                % start simulation
                simulation_run( particle_initVel, particle_initPos, handles );
            end;
            
        case STATUS_RUNNING
            % pause simulation
            % it pause or stop with the status change
            
            % change the text on button to "Restart Simulation"
            set(handles.pbuttGoSimulate, 'String', 'Restart simulation' );
            pause(0.1);
            % change status to STATUS_PAUSED
            status = STATUS_PAUSED;
            
            % save the world for further applications
            vrdrawnow;
            save(w, get(w, 'FileName'));            
            
        case STATUS_PAUSED
            % change the text on button to "Pause Simulation"            
            set(handles.pbuttGoSimulate, 'String', 'Pause simulation' );
            pause(0.1);
            % change status to STATUS_RUNNING
            status = STATUS_RUNNING;
            
            % unpause simulation         
            simulation_run( particle_vel, particle_pos, handles );  
            
        case STATUS_FIELDS_SET
            % change the text on button to "Pause Simulation"
            set(handles.pbuttGoSimulate, 'String', 'Pause simulation' );
            pause(0.1);
            % change status to STATUS_RUNNING
            status = STATUS_RUNNING;
            
            % start simulation
            simulation_run( particle_initVel, particle_initPos, handles );
    end
end

% --- Executes on button press in pbuttStopSimulation.
function pbuttStopSimulation_Callback(hObject, eventdata, handles)
% hObject    handle to pbuttStopSimulation (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    
    global_variables;

    switch status
        case STATUS_STOP
            % don't change anything
            
        case STATUS_RUNNING
            %offer saving simulation
            
            % change the text on start button "Start Simulation"            
            set(handles.pbuttGoSimulate, 'String', 'Start simulation' );            
            
            % change status to STATUS_STOP
            status = STATUS_STOP;
            
        case STATUS_PAUSED
            % stop simulation
            
            %offer saving simulation
            
            % change the text on start button "Start Simulation"            
            set(handles.pbuttGoSimulate, 'String', 'Start simulation' );
            
            % change status to STATUS_STOP
            status = STATUS_STOP;
    end
    % save the vr world for further applications
    vrdrawnow;
    save(w, get(w, 'FileName'));
end



% --- Executes on button press in rbuttonVectorForce.
function rbuttonVectorForce_Callback(hObject, eventdata, handles)
% hObject    handle to rbuttonVectorForce (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of rbuttonVectorForce
    global_variables;
    vectorForce_set = get( hObject, 'Value' );
end

% --- Executes on button press in rbuttonVectorVelocity.
function rbuttonVectorVelocity_Callback(hObject, eventdata, handles)
% hObject    handle to rbuttonVectorVelocity (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of rbuttonVectorVelocity
    global_variables;
    vectorVel_set = get( hObject, 'Value' );
end

% --- Executes on button press in pbuttShowFields.
function pbuttShowFields_Callback(hObject, eventdata, handles)
% hObject    handle to pbuttShowFields (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
    
    global_variables;
    
    
    % prepare all simulation information
    prepare_information( handles );

    % start initialization
    initialization( handles );
    
    status = STATUS_FIELDS_SET;
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一级黄| 日本美女一区二区三区| 精品国产三级a在线观看| 欧美日韩一区二区三区四区 | 成av人片一区二区| 国产精品综合一区二区| 精彩视频一区二区三区| 美腿丝袜亚洲一区| 捆绑紧缚一区二区三区视频 | 亚洲国产精品黑人久久久| 日韩欧美第一区| 精品成人一区二区三区四区| 日韩欧美国产一区二区三区| 欧美久久久久久久久久| 日韩欧美一二三四区| 911精品国产一区二区在线| 欧美精选午夜久久久乱码6080| 欧美色欧美亚洲另类二区| 欧美日韩黄视频| 精品国产电影一区二区| 久久久蜜臀国产一区二区| 国产精品久久久久久久蜜臀| 亚洲三级电影网站| 性做久久久久久久久| 美女视频一区二区| 国产成人亚洲综合a∨婷婷图片| 波多野结衣中文字幕一区| 91免费看`日韩一区二区| 欧美伊人精品成人久久综合97| 欧美日韩国产精选| 久久网站最新地址| 亚洲一区视频在线观看视频| 青草国产精品久久久久久| 国产精品456| 色呦呦日韩精品| 日韩视频一区在线观看| 亚洲私人影院在线观看| 午夜电影网一区| 国产成人免费网站| 欧美精品久久久久久久多人混战| 久久嫩草精品久久久精品一| 亚洲男人电影天堂| 精品一区二区三区免费观看| 色视频一区二区| 久久久久国产成人精品亚洲午夜 | 欧美日韩精品是欧美日韩精品| 欧美本精品男人aⅴ天堂| 亚洲视频免费在线观看| 奇米影视一区二区三区| 色婷婷综合中文久久一本| 日韩精品资源二区在线| 亚洲人精品一区| 国产**成人网毛片九色| 在线观看网站黄不卡| 日本一区二区三区在线不卡| 日韩精品电影在线| 色婷婷综合久久久久中文一区二区| 欧美一区三区二区| 日本一道高清亚洲日美韩| 成人小视频在线观看| 日韩欧美成人激情| 亚洲成人精品在线观看| 成人av网址在线观看| 精品国产免费一区二区三区四区 | 国产一区二区免费看| 欧美私人免费视频| 中文字幕日韩一区| 国产a视频精品免费观看| 在线播放国产精品二区一二区四区| 综合色天天鬼久久鬼色| 国产精品自拍三区| 精品国产乱码久久久久久牛牛| 日韩在线观看一区二区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美一级理论片| 午夜国产不卡在线观看视频| 欧美日韩一区二区电影| 亚洲综合一区在线| 色偷偷久久一区二区三区| 亚洲视频香蕉人妖| 91理论电影在线观看| 亚洲男女一区二区三区| 91成人网在线| 亚洲一区二区中文在线| 91国偷自产一区二区三区成为亚洲经典| 中文字幕精品一区二区精品绿巨人| 国产 日韩 欧美大片| 国产精品国产三级国产普通话三级 | 欧美影视一区在线| 一级做a爱片久久| 欧美精品三级日韩久久| 久久99深爱久久99精品| 久久品道一品道久久精品| 国产精品99久久久久| 国产精品美女久久久久久久久久久| 成人性生交大片免费| 亚洲激情网站免费观看| 欧美三级视频在线播放| 日本在线不卡一区| 国产色婷婷亚洲99精品小说| 国产激情视频一区二区三区欧美 | 欧美日韩国产另类一区| 日韩av电影天堂| 精品国产sm最大网站免费看| 国产成人av一区二区三区在线观看| 国产精品久久久久久久久久免费看| 91在线一区二区三区| 亚洲国产成人高清精品| 欧美va亚洲va香蕉在线| 国产成人综合在线播放| 亚洲啪啪综合av一区二区三区| 欧洲国内综合视频| 免费成人在线网站| 亚洲男同1069视频| 91精品国产高清一区二区三区 | 欧美精品久久一区二区三区| 国产一区二区三区在线观看免费视频 | 日产精品久久久久久久性色| 日韩精品一区二区三区在线| 99亚偷拍自图区亚洲| 亚洲成a人v欧美综合天堂下载| 久久久久久电影| 欧美三级电影网| 福利一区福利二区| 日韩黄色一级片| 国产精品久久久久久亚洲毛片 | 国产麻豆精品95视频| 亚洲色图都市小说| 2欧美一区二区三区在线观看视频| 91丝袜美女网| 久久97超碰色| 亚洲国产日韩a在线播放| 国产亚洲精品bt天堂精选| 欧美日韩高清一区二区不卡| 国产成人精品免费| 视频一区二区国产| 中日韩免费视频中文字幕| 欧美成人在线直播| 欧美日韩国产成人在线免费| 不卡视频免费播放| 激情综合色综合久久| 天天色 色综合| 亚洲激情自拍视频| 亚洲靠逼com| 国产精品国产三级国产aⅴ原创| 日韩欧美国产三级电影视频| 欧美日本在线一区| 在线一区二区三区四区五区 | 亚洲大片一区二区三区| 国产精品久久久久一区二区三区共| 日韩三级中文字幕| 欧美日韩成人在线一区| 色狠狠色狠狠综合| 一本大道久久a久久精二百 | 欧美亚洲一区二区在线| 国产suv精品一区二区三区| 韩国精品在线观看| 国内精品视频一区二区三区八戒| 日本午夜精品视频在线观看| 亚洲精选视频免费看| 亚洲欧美精品午睡沙发| 国产精品第13页| 日韩毛片一二三区| 亚洲色图.com| 日韩毛片精品高清免费| 亚洲国产一区二区视频| 一卡二卡欧美日韩| 偷偷要91色婷婷| 青青国产91久久久久久| 精品一区二区三区免费视频| 国产精品一区二区三区乱码| 精品写真视频在线观看| 国产69精品久久777的优势| 成人高清免费观看| 91污在线观看| 欧美日韩精品欧美日韩精品一 | 日本一区二区成人在线| 国产精品色在线观看| 亚洲乱码精品一二三四区日韩在线| 一区二区三区加勒比av| 亚洲一区二区美女| av一区二区不卡| 色婷婷精品大在线视频| 欧美另类久久久品| 精品国产91久久久久久久妲己| 国产无遮挡一区二区三区毛片日本| 亚洲日本在线看| 亚洲国产一区二区三区| 国产一区三区三区| 91网站黄www| 精品日韩欧美在线| 亚洲视频一区二区免费在线观看 | 久久久噜噜噜久久人人看| 国产精品久久久久影院色老大 | 国产高清一区日本| 欧美性xxxxxxxx| 国产三级久久久| 水野朝阳av一区二区三区| 国产一区二区在线免费观看| 一本到高清视频免费精品|