Answered
Grouping into multiple folders from a single folder
shivasakthi - what have you tried so far? This seems like homework so we can only give out hints. Start by writing out the pse...

9 years ago | 0

Answered
Simple Kalman Filtre with 2-D state vector
bahadir - unless you have an algorithm to estimate what *R(t)* and *Q(t)* should be at time *t*, then I would just use the *R* a...

9 years ago | 1

| accepted

Answered
uicontol callback errors in different Matlab versions
Richard - there were changes to how GUI elements are managed around R2014b (I think as I'm still on R2014a - see <http://www.mat...

9 years ago | 0

| accepted

Answered
GUI uitable_CellEditCallback invisible
Jan - in the GUI editor (so GUIDE), click the uitable and bring up its menu (depending upon your OS, you may need to right-click...

9 years ago | 0

| accepted

Answered
Want to use a guide pushbutton to delete all files except some in folder which gui is residing.
Tessa - rather than mixing files that persist with those that are temporary, why not create a TEMP directory and save all of tho...

9 years ago | 0

| accepted

Answered
How can I create a pie chart legend in the Matlab GUI?
alex1337 - you are using the following code to create your pie chart and legend pie(handles.axes5,data.a1); legend(han...

9 years ago | 2

| accepted

Answered
How can I define different axis limits in a Matlab GUI with several axes?
alex1337 - just pass the handle to the axes that you wish to set the limits on. For example, do axis(handles.axes1, [(rGPmi...

9 years ago | 1

| accepted

Answered
plotData does not plot anything
Ivan - if you are using the *plotData* function from <https://github.com/zhouxc/Stanford-Machine-Learning-Course/blob/master/Log...

9 years ago | 2

Answered
Hi! I want to solve an equation based on (fzero) function but cannot make any sense of how fzero works.. specifically i have the following equation f(x)=4x3-3x2-30=0, 0≤x≤5 ..any help would be appriciated..thanks!!!
panos - take your equation and create an anonymous function as myFunc = @(x)4*x^3-3*x^2-30 and then pass it and an initia...

9 years ago | 0

Answered
adding entities of 2 loops
summyia - just combine the code. Both loops iterate over the columns of *Route* and since the *Setup* does not depend upon the ...

9 years ago | 1

| accepted

Answered
5 person die roller
Mads - I think that your logic could be simplified to i = i + 1; if i > 5 i = 1; end So if the roll is six, then...

9 years ago | 0

| accepted

Answered
how to extract data from directory
sam - use <https://www.mathworks.com/help/matlab/ref/dir.html dir> to get an array of the sub-directories (from the main directo...

9 years ago | 1

Answered
Saving the responses as struct from the GUI
Özge - the "answers" like *NameAns*, *GenderAns*, *ColorAns* are handles to the controls that you have created. That is why the...

9 years ago | 0

| accepted

Answered
How can I highlight or change the color of certain values in a table
Presumably you are displaying your data in a GUI and so would need to use a *uitable*. See <http://www.mathworks.com/matlabcent...

9 years ago | 0

| accepted

Answered
Export_fig in a multi-tap figure
YCY - try using <https://www.mathworks.com/help/matlab/ref/getframe.html getframe> to capture the axes as a frame and then save ...

9 years ago | 0

Answered
I have matrix with dimension 2151*100,i want to subtract 1st column from 3,3rd column from 6 ,6th from 9th and so on..till 100th column. Please suggest any simple way to do this.
Vikas - are you subtracting the updated third column from the sixth (etc.)? If so, you could do something like A = rand(215...

9 years ago | 0

| accepted

Answered
Told to ask a new question = Why won't this work?
DJ - you will have to clarify what you mean by _it doesn't work_. What is the input that you are using and what is the output (t...

9 years ago | 1

Answered
How to count number of specific value?
Justyna - if data = [5 2 3 8 7 1 2 2 3] then you can use <https://www.mathworks.com/help/matlab/ref/length.html length> ...

9 years ago | 0

Answered
replace numbers with letters in a vector or matrix
summyia - look at the dimensions of your *res* array >> size(res) ans = 1 8 So it is a single row array wit...

9 years ago | 1

| accepted

Answered
How can I set value of a loop to be the contents of an array?
Ahmed - if you want to iterate over the elements in the second row of *theta34*, then you should be able to do something like ...

9 years ago | 0

| accepted

Answered
I don't understand this question, does someone else?
DJ - suppose the input cell array (vector) contains 3 elements (so *n=3*). Each element is an array that contains the indices (...

9 years ago | 0

| accepted

Answered
create a GUI for my basic script
mabdorab - there are plenty of examples on how to create a GUI using MATLAB so start with one of them and go from there. Depend...

9 years ago | 0

Answered
sum up each column of my loop matlab
mabdorab - it sounds like you want to create a 30000x4 array of Poisson random numbers. Try presizing your *R* and then update ...

9 years ago | 0

Answered
How to request additional data from the user in a function
DJ - the function returns an array of structs where each element corresponds to a day of the month. So if the user passes in an...

9 years ago | 1

Answered
Matlab and Pendulum function - Need Help - Thank you.
DJ - you've missed two important points in the problem description. The first is the _...the angular velocity omega is incre...

9 years ago | 0

| accepted

Answered
How to get only duration calculated from datetime type variables as an integer/real scalar?
laksi11 - one way would be for you to convert your datetime values into serial numbers using <https://www.mathworks.com/help/mat...

9 years ago | 2

Answered
Help my code won't work as it ignores my switch blocks and puts in a different value of the string value.
Harry - when comparing strings, use the <https://www.mathworks.com/help/matlab/ref/strcmp.html strcmp> or <https://www.mathworks...

9 years ago | 1

| accepted

Answered
delete splash screen from background
Tyler - I don't think that adding a splash screen/image to the *OpeningFcn* of your GUI is the right way to go. From <https://w...

9 years ago | 0

Answered
Assign figure to axes gui
Georg - if your function is plotting or drawing some data on to an axes, then if you want to draw it to a specific axes (like th...

9 years ago | 0

Answered
How can I unfocus a pushbutton after I have clicked it
Arne - consider using <https://www.mathworks.com/help/matlab/ref/gco.html gco> which returns the handle of the current object. ...

9 years ago | 1

| accepted

Load more