統計
MATLAB Answers
9 質問
0 回答
ランク
of 179,426
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
質問
Hi every one , Is there any way to fill specific cells of a matrix with random number Not all the matrix ?
<</matlabcentral/answers/uploaded_files/77764/Capture.PNG>>
9年以上 前 | 1 件の回答 | 0
1
回答質問
Hi every one , I need to construct a binary Array such that each time i can add another cell to it ? as shown in the code below .,, but i got an error
>> A1=[1 1 1 1 0 0 0 0]; >> D=[A1]; >> D(2)=[0 0 0 0 1 0 1 0];
9年以上 前 | 1 件の回答 | 0
1
回答質問
Hi every one ,i wrote a simple code that ask the user for a number as input then convert it to binary and finally perform bitand to get final binary number , but i got an error !,my question is how to convert charactor to an Array or to double ?
address=inputdlg('enter an address'); s=str2num(address{:}) add=(dec2bin(s,8)); B=11110000; A=bitand(add,B)
10年弱 前 | 1 件の回答 | 0
1
回答質問
Hi every one , i wrote a simple Gui1 that takes three values from the user then stores them in its UserData to call them back from Gui2 ,But it results in an error , even i set HandlesVisibity of Gui1 ?
function pushbutton1_Callback(hObject, eventdata, handles) Address=str2num(get(handles.edit1,'string')) Tb=get(handl...
10年弱 前 | 0 件の回答 | 0
0
回答質問
H i every one , i need to declare a counter such that if any one of the four buttons is pressed a specefic funtion specified in the fifth button is performed.Suppose UserData can not be used it reserved for something else
function pushbutton1_Callback(hObject, eventdata, handles) counter=1; function pushbutton2_Callback(hObject, eventdata, hand...
10年弱 前 | 1 件の回答 | 0
1
回答質問
Hi every one, I wrote a simple code in GUI that ask the user to enter a string such as (I.2) usin inputdlg then convert it to binary , but i got an error !! my code is provided below .
elseif button_state == get(hObject,'Min') address=inputdlg('enter an address'); d=double(address); s=de...
10年弱 前 | 1 件の回答 | 0
1
回答質問
Hi everyone Is there any way to pass more than one variables with different data types through the UserData Property for any UIcontrol in GUI ?
function pushbutton1_Callback(hObject, eventdata, handles) % i need to pass both a and b to another callback a...
10年弱 前 | 1 件の回答 | 0
1
回答質問
Hi everyone , i have a simple code that used to resize a figure in GUI by pressing a pushbutton ,but i got an error using getpixelposition command
function pushbutton8_Callback(hObject, eventdata, handles) p=getpixelposition(handles.figure1,'position'); p1=p+[0 0 0...
10年弱 前 | 0 件の回答 | 0
0
回答質問
hello i am working on GUI and i wrote a simple code that get the position of the pushbutton once it is pressed then send it thruogh the UserData property to the uipushtool which will display a resized picture on the pushbutton CData
function pushbutton3_Callback(hObject, eventdata, handles) p=getpixelposition(hObject); set(handles.uipushtool1,'User...
10年弱 前 | 1 件の回答 | 0
