Answered
Hello I need help with my left Riemann Sum loop
Jesutofunmi - look closely at your code for k = 1:n-1 Lsum = a +dx*(3*(k)^2+4); end display(Lsum) On each itera...

10 years ago | 0

Answered
Daily average of 8 years with data set every 3 hours
MF - look closely at your code if (numel(index) > 0) Daily_mean = mean(fullSST(:, :, index), 3); Daily_time = cu...

10 years ago | 0

| accepted

Answered
cancer " data set " in Breast cancer diagnosis
Mohamed - the variable *cancer* is an input parameter to several functions. For example, function [Arbol taux] = arbol_trai...

10 years ago | 2

| accepted

Answered
For loop iteration help
ajk1 - rather dynamically creating field names for your struct (which is prone to errors), why not just create a (perhaps) cell ...

10 years ago | 1

| accepted

Answered
I need to create matlab code to play the Happy birthday tune, but at the moment it all plays together as a weird noise.
Daniel - the problem with using *soundsc* (or *sound*) is that it doesn't block while playing. So as soon as you call this func...

10 years ago | 2

| accepted

Answered
Hi, how to solve this error 'You specified 1 output arguments, and got 5 columns of data' ?
SM - which line is generating the error message? In your SQL query your are requesting five columns. You then evaluate this sta...

10 years ago | 1

| accepted

Answered
what is the difference between RGB image separation and extraction?
dhahira - I suspect that your algorithm to separate the image into its RGB components is creating three 3D matrices whereas your...

10 years ago | 0

| accepted

Answered
Split 4000x10 Matrix into 400 10x10 Matrices and calculate stats for each matrix?
Akshay - try using <http://www.mathworks.com/help/matlab/ref/reshape.html reshape> to split your 4000x10 matrix into a 10x10x400...

10 years ago | 0

Answered
Plot red lines on a contourf plot
uCiucani - try drawing the red lines after you have created the contour plot as contourf(X1,Y1,HV_NDTD1) hold on; plo...

10 years ago | 0

Answered
Problem with callback function "hanging" after certain number of times pressed
kaycraw - since you are programmatically creating your GUI, there are a couple of things that you can do to simplify the above. ...

10 years ago | 0

| accepted

Answered
error in runnig .m files goes to program files of inestalation path
mohamad - according to your code, *left_pic* is initialized as left_pic = getdata(vid1); where <http://www.mathworks.com/...

10 years ago | 1

Answered
How do I change this to produce the desired value in the box?
Reetahan - since you haven't attached your figure, it is difficult for us to visualize what your GUI looks like. What are the t...

10 years ago | 0

Answered
Image Processing Problem (Listbox)
Khor - how many axes do you have and how do you decide which image to assign to which axes? Will you always select three images...

10 years ago | 0

Answered
understanding the TCPIP object in GUI
Hamza - from <http://www.mathworks.com/help/instrument/writing-and-reading-data_f16-57447.html writing and reading data>, indica...

10 years ago | 0

Answered
Copying text from edit box in GUI to matlab report.
Sudhanshu - you mention that typing \n works. Can you perhaps inject this character after the user has typed in the text into t...

10 years ago | 0

| accepted

Answered
divide an image to overlapped blocks
nadia - if you want to extract every 31x31 block, then you could try using <http://www.mathworks.com/help/images/ref/blockproc.h...

10 years ago | 0

| accepted

Answered
How to save webcam image in gui to a certain folder without push button
snowleopoard - Did you get an error message when you tried to save the file, and if so, what was it? I suspect that the abo...

10 years ago | 1

| accepted

Answered
Plotting to axes in GUI using seperate m-file
mitchell - how are you trying to access the GUI's axes? And, what error are you observing when you try to do so? You can t...

10 years ago | 0

Answered
GUI to plot excel with a next and previous button
chlor - if, in your *OpeningFcn* you define local variables as you have done as function next_previous_in_plotty_OpeningFcn...

10 years ago | 1

| accepted

Answered
how to pass mat files by reference to the function?
Talha - at what point do you load the *net* object? Since you are using GUIDE to create your GUI, then you could do this in the...

10 years ago | 0

| accepted

Answered
Output argument not assigned during call
Kiruba - look at your function signature function [S1]= PCNN(S) The output parameter is *S1* yet nowhere in your code is ...

10 years ago | 0

| accepted

Answered
run .m without .fig (GUI)
Ahmed - if the GUI was created using GUIDE, then you need both the m file and the figure (.fig) file to be able to run the GUI.

10 years ago | 0

| accepted

Answered
rotating a 2d shape
Shaan - see <https://en.wikipedia.org/wiki/Rotation_matrix rotation matrix> which you can construct to rotate your (x,y) points ...

10 years ago | 2

| accepted

Answered
what code should i make for a reset, bit plane & grayscale push button for the following code?
Abhishek - are you observing any problems with the above code? If so, what are they? If you are using GUIDE to create your GUI...

10 years ago | 0

Answered
How to create the button "next" in a GUI?
Bernardo - yes, in the next button callback function you would hide the existing controls and display the next set of controls. ...

10 years ago | 1

| accepted

Answered
How to use pushbutton to stop a loop?
adi - the error message is probably being generated because you are trying to access a field of a structure that has not yet bee...

10 years ago | 3

| accepted

Answered
I encountered error while running program(runga kutta solving using function handle) for solving a set of differential equations and applying a controller 'u'. How to tackle it out?
Shijina - use the MATLAB debugger to step through the code and see what is happening. Consider these lines which initializes a ...

10 years ago | 0

Answered
how to save the data of an opened file by uigetfile in the workspace
imene - rather than re-using the same variable name for the data that is being imported, try filename = uigetfile('*.txt*', ...

10 years ago | 0

| accepted

Answered
plzzz explain this... i'm new
bharath - see <http://www.mathworks.com/help/matlab/ref/regexp.html regexp> and <http://www.mathworks.com/help/matlab/ref/regexp...

10 years ago | 1

| accepted

Answered
Axes with moving vertical line
peetman - you will need to include callbacks for the mouse button down, motion, and up events. set(hFig,'WindowButtonDownFcn...

10 years ago | 6

Load more