Réponse apportée
Select a set of variables from an array NOT equal to a set of indices
Reid - how about trying B = A; B(set) = []; and those elements at indices 1,3,5 should now be removed from *B*.

environ 8 ans il y a | 2

Réponse apportée
How can I make a static text (in Gui) 'disappear' after a certain time?
Claire - you can probably use a <https://www.mathworks.com/help/matlab/ref/timer-class.html timer> to execute a command five sec...

environ 8 ans il y a | 1

| A accepté

Réponse apportée
writing a formula in matlab
amir - since you have a summation, then consider using a *for* loop to iterate from 0 to *n*. See <https://www.mathworks.com/hel...

environ 8 ans il y a | 0

Réponse apportée
Please help me i get the error "Undefined function or variable 'varargin'. Error in Question4 (line 16) gui_mainfcn(gui_State, varargin{:});"
Phiri - your function signature is function varargout = Question4(varargout) where the input and output parameters/argume...

environ 8 ans il y a | 0

Réponse apportée
How can i create a third uitable with the datas according to the data in the 1st and 2nd uitable in Matlab GUide?
sachin - since you probably have the handle to the second uitable and you know which element of that table you are interested in...

environ 8 ans il y a | 0

Réponse apportée
with which keyword can i handle the java component in GUI?
Tong - try saving the *jSlider2* to the handles structure in your OpeningFcn jSlider2 = javax.swing.JSlider(1,10,1); h...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Hi all, I try to create a cell sized 20*7. when I put it in a loop, just the last row is filled and other rows remain empty! here is a general pattern of my code:
Masoud - look closely at your *for* loop for mm = i : size (MUEGFdata,1) What is *i* initialized to? Could it already be ...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
How to get the values of graphs interactively in a matlab GUI
Kaleesh - if you are just trying to update your edit text controls with the values that you have obtained using *getpts* then yo...

environ 8 ans il y a | 1

| A accepté

Réponse apportée
Why cant i click my checkbox created in UItable in Matlab GUIDE?
sachin - please ensure that your checkbox column is editable. As for deleting a row, are you deleting the row where you check th...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
How do i create a UItable with the data i want to be filled in the table ?
sachin - since you mention "dragged and dropped" the uitable onto your GUI, I'm assuming that you are using GUIDE. If so, then y...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
How can I put in an array the elements near the center?
Dario - you could create a recursive function that "peels" off the outer "layer" of your input matrix. You would then pass a sub...

environ 8 ans il y a | 0

Réponse apportée
How do i add a pushbutton to an already created uitable in GUI matlab?
sachin - once you add your new button (to your GUI) you can use the following callback to add one new row to the table funct...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
GUI problem with code
Neha - without your figure file, we cannot run the GUI and so cannot step through the code (with the debugger) to see what is ha...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Image watermarking using DWT GUI
Ubaashana - in the (save) push button callback, you will save the data to file, possibly using <https://www.mathworks.com/help/m...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
How do i open and close a panel with a pushbutton in matlab GUI guide?
Giri - in the push button callback, check the visibility state of the panel. If it is OFF, then show the panel. And if it is ON,...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Undefined function or variable 'Untitled'.
Abdelmoniem - I'm not sure how the error message _Undefined function or variable 'Untitled'_ fits in with your code since I don'...

environ 8 ans il y a | 0

Réponse apportée
Sorting the elements of a matrix, Part 3
alpedhuez - if you want to sort the rows in descending order, then try B = sort(A,2,'descend') See <https://www.mathworks...

environ 8 ans il y a | 0

Réponse apportée
Index exceed matrix dimension!!
Alex - is the error occurring in this block of code? for k=1:nsym temp=MF_out(start:finish); m=max(temp); ...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Running two counter in one for statement
Rich - try using just one *for* loop maxIter = 3; for k=1:maxIter handles.checkerDR{k}=... hand...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Question about typing in a function
Peter - try using <https://www.mathworks.com/help/matlab/ref/log10.html log10> instead of <https://www.mathworks.com/help/matlab...

environ 8 ans il y a | 1

| A accepté

Réponse apportée
How can I load a csv file into Matlab
Neva - I suspect that the csv file is not in the MATLAB search path. Try providing the full path to the file. You should be able...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
GA error "your fitness function must return a scalar value"
Nikolas - your objective function must return a scalar value. In the above, *f* is returning a matrix instead of the scalar. If ...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
Get the selected value in a popup menu with a set
jacques - if you want to get the selected item you would first get the index of the selected value idx = get(handles.popupna...

environ 8 ans il y a | 2

| A accepté

Réponse apportée
Why set(handles.D,'String',final_D) set(handles.B,'String',final_B) set(handles.C,'String',final_C) set(handles.C0,'String',final_C) set(handles.Designation,'String',final_Designation) is not printing in static text(GUI)
Saurao - I'm going to guess that set(handles.D,'String',final_D) set(handles.B,'String',final_B) set(handles.C,'Strin...

environ 8 ans il y a | 0

Réponse apportée
How to insert a smaller diagonal into a Matrix?
Monkeyman - try using <https://www.mathworks.com/help/matlab/ref/diag.html diag> as D = diag([1 1 1],2)

environ 8 ans il y a | 1

| A accepté

Réponse apportée
Unexpected MATLAB expression when trying to load file
Edward - please look at your function signature function [data,loginfo]=LoadZmachineData('C:\ProgramData\ZmachineDataViewer\...

environ 8 ans il y a | 1

| A accepté

Réponse apportée
How to write a code for 3 Variables
Gokhan - you can do A==1 to return an array of logical values, zeros and ones, that will tell you which element of *A* is...

environ 8 ans il y a | 0

Réponse apportée
How to avoid errors when modifing data using guidata and get?
Oscar - look closely at this line in your pushbutton1 callback i_p.Vpol=str2double(get(i_p.Vpol,'string')); You are getti...

environ 8 ans il y a | 0

| A accepté

Réponse apportée
In this code plot(t,AC(3,:),'-r',t,AC(2,:),'-g',t,AC(1,:),'-b'); what is the value/essence of the '-r', '-g' and '-b'?
Warda - the strings are referring to the line style, marker, and colour (see <https://www.mathworks.com/help/matlab/ref/plot.htm...

environ 8 ans il y a | 0

Réponse apportée
Error using imread (line 349) File "cool.png" does not exist. Error in kkk (line 3) b=imread('cool.png');
Asha - most likely the cool.png file is not in the MATLAB search path and so it cannot be found. I recommend that you either add...

environ 8 ans il y a | 0

Charger plus