⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolkit.html

📁 五点差分型多重网格方法:各种插值算子的比较)
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<span class="keyword">end</span><span class="comment">% Update handles structure</span>guidata(hObject, handles);hold off; <a href="showmesh.html" class="code" title="function showmesh(node,elem)">showmesh</a>(handles.node, handles.elem); hold on;title(<span class="string">'Current mesh'</span>, <span class="string">'FontSize'</span>, 14);<span class="comment">% --- Executes on button press in plotelem.</span><a name="_sub4" href="#_subfunctions" class="code">function plotelem_Callback(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to plotelem (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    structure with handles and user data (see GUIDATA)</span><span class="keyword">if</span> (handles.isNewindow == 0)    figure(1); subplot(1,2,2); <span class="comment">% in old window</span><span class="keyword">else</span>     figure(handles.plotwindow);<span class="keyword">end</span><a href="plotelem.html" class="code" title="function plotelem(node,elem)">plotelem</a>(handles.node, handles.elem);title(<span class="string">'Element indices'</span>, <span class="string">'FontSize'</span>, 16);<span class="comment">% --- Executes on button press in findnode.</span><a name="_sub5" href="#_subfunctions" class="code">function findnode_Callback(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to findnode (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>index = str2double(get(handles.Input_box,<span class="string">'String'</span>));<span class="keyword">if</span> (index &lt;= 0 || index &gt; max(size(handles.node))), <span class="keyword">return</span>; <span class="keyword">end</span><span class="keyword">if</span> (handles.isNewindow == 0)    figure(1); subplot(1,2,2); <span class="comment">% in old window</span><span class="keyword">else</span>     figure(handles.plotwindow);<span class="keyword">end</span><a href="findnode.html" class="code" title="function findnode(node,i)">findnode</a>(handles.node, index);<span class="comment">% --- Executes on button press in findelem.</span><a name="_sub6" href="#_subfunctions" class="code">function findelem_Callback(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to findelem (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>index = str2double(get(handles.Input_box,<span class="string">'String'</span>));<span class="keyword">if</span> (index &lt;= 0 || index &gt; max(size(handles.elem))), <span class="keyword">return</span>; <span class="keyword">end</span><span class="keyword">if</span> (handles.isNewindow == 0)    figure(1); subplot(1,2,2); <span class="comment">% in old window</span><span class="keyword">else</span>     figure(handles.plotwindow);<span class="keyword">end</span><a href="findelem.html" class="code" title="function findelem(node,elem,i)">findelem</a>(handles.node, handles.elem, index);<span class="comment">% --- Executes on button press in findedge.</span><a name="_sub7" href="#_subfunctions" class="code">function findedge_Callback(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to findedge (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>index = str2double(get(handles.Input_box,<span class="string">'String'</span>));edge = [handles.elem(:,[1,2]); handles.elem(:,[1,3]); handles.elem(:,[2,3])];edge = unique(sort(edge,2),<span class="string">'rows'</span>);<span class="keyword">if</span> (index &lt;= 0 || index &gt; max(size(edge))), <span class="keyword">return</span>; <span class="keyword">end</span><span class="keyword">if</span> (handles.isNewindow == 0)    figure(1); subplot(1,2,2); <span class="comment">% in old window</span><span class="keyword">else</span>     figure(handles.plotwindow);<span class="keyword">end</span><a href="findedge.html" class="code" title="function findedge(node,edge,i)">findedge</a>(handles.node, edge, index);<a name="_sub8" href="#_subfunctions" class="code">function Input_box_Callback(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to Input_box (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    structure with handles and user data (see GUIDATA)</span><span class="comment">% Hints: get(hObject,'String') returns contents of Input_box as text</span><span class="comment">%        str2double(get(hObject,'String')) returns contents of Input_box as a double</span><span class="comment">% --- Executes during object creation, after setting all properties.</span><a name="_sub9" href="#_subfunctions" class="code">function Input_box_CreateFcn(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to Input_box (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    empty - handles not created until after all CreateFcns called</span><span class="comment">% Hint: edit controls usually have a white background on Windows.</span><span class="comment">%       See ISPC and COMPUTER.</span><span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))    set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);<span class="keyword">end</span><span class="comment">% --- Executes on button press in plotnode.</span><a name="_sub10" href="#_subfunctions" class="code">function plotnode_Callback(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to plotnode (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    structure with handles and user data (see GUIDATA)</span><span class="keyword">if</span> (handles.isNewindow == 0)    figure(1); subplot(1,2,2); <span class="comment">% in old window</span><span class="keyword">else</span>     figure(handles.plotwindow);<span class="keyword">end</span><a href="plotnode.html" class="code" title="function plotnode(node)">plotnode</a>(handles.node); title(<span class="string">'Node indices'</span>, <span class="string">'FontSize'</span>, 14);<span class="comment">% --- Executes on button press in plotedge.</span><a name="_sub11" href="#_subfunctions" class="code">function plotedge_Callback(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to plotedge (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>edge = [handles.elem(:,[1,2]); handles.elem(:,[1,3]); handles.elem(:,[2,3])];edge = unique(sort(edge,2),<span class="string">'rows'</span>);<span class="keyword">if</span> (handles.isNewindow == 0)    figure(1); subplot(1,2,2); <span class="comment">% in old window</span><span class="keyword">else</span>     figure(handles.plotwindow);<span class="keyword">end</span><a href="plotedge.html" class="code" title="function plotedge(node,edge)">plotedge</a>(handles.node, edge); title(<span class="string">'Element indices'</span>, <span class="string">'FontSize'</span>, 14);<span class="comment">% --- Executes on button press in windowselect.</span><a name="_sub12" href="#_subfunctions" class="code">function windowselect_Callback(hObject, eventdata, handles)</a><span class="comment">% hObject    handle to windowselect (see GCBO)</span><span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span><span class="comment">% handles    structure with handles and user data (see GUIDATA)</span><span class="comment">% Hint: get(hObject,'Value') returns toggle state of windowselect</span>handles.isNewindow = get(hObject,<span class="string">'Value'</span>);guidata(hObject, handles);</pre></div><hr><address>Generated on Fri 17-Nov-2006 11:02:53 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2003</address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -