Answered
Creating a mouse down event specific to an axes1 component only
Jason - in the *OpeningFcn* of your GUI, assign the *getMousePositionOnImage* to the axes and _not_ the figure. Try the followin...

11 years ago | 1

| accepted

Answered
What test is validateattributes() using to check for attributes 'positive' or 'nonnegative' ? (possible bug)
Naor - for MATLAB R2014a (on OS X 10.9.5) in order for validateattributes(obj,{'MyClass'},{'positive'}) to pass, you need...

11 years ago | 1

| accepted

Answered
SONAR angle-range plot
Sreya - is your 70 degrees relative to north? If so, then you should be able to use the following equations to get (x,y) coordi...

11 years ago | 0

| accepted

Answered
Exporting choices from radiobutton to GUI
Eric - you can do all of this work in the callback for your *Done* button. Something like the following will do function pu...

11 years ago | 0

Answered
How to make user-defined type pass as numeric?
Naor - try overloading the *isa* function instead. For example, let's suppose that the following class is "numeric". class...

11 years ago | 1

| accepted

Answered
How to loop intermidpoint statement until the absolute error falls within the tolerance of?
Tyw7 - I notice that there is the following couple of lines of code while aim < abs_err goto 2 What is the intent b...

11 years ago | 0

Answered
how to detect [ESC] key press
Saadani - have you tried the following? Just save the below code to an m file called *KeyPressFcnTest* and run it. I was able ...

11 years ago | 1

Answered
Read a specific number in a text file containing a mixture of strings and numbers
Mamali - if you can assume that all text files are the same and so follow the same pattern which is that you are interested in t...

11 years ago | 1

| accepted

Answered
Game of Life rules using switch statement.
Josh - from <https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Game of Life>, there are four rules that need to be applied g...

11 years ago | 0

| accepted

Answered
Equation in Taylor series to show each iteration?
Nick - you may want to review the pdf with your professor since the example showing the differences are not true for the case wh...

11 years ago | 0

| accepted

Answered
Legend has different color lines from plot lines
Kelly - typically this problem of colour mismatch between what is plotted and what appears in the legend occurs because there ar...

11 years ago | 0

| accepted

Answered
it shows undefined function error in this line * * * [images offsets croppedOriginal] = SynthDataset(im, numImages, blurSigma)*** i am using free version of matlab 2015
vignesh - you probably need to download Victor May's submission for the function *SynthDataset*. You can get the code from this...

11 years ago | 0

Answered
Modifying uitable using GUIDE
In the *OpeningFcn* of your GUI, just set the *Data* property of the *uitable* to be a 1x2 (or whatever number of columns) cell ...

11 years ago | 1

| accepted

Answered
Use NaN values in an image
_Moved comment to here_ Note that it is good practice not to use i and j as indexing variables in your loops since MATLAB als...

11 years ago | 0

Answered
Normalize y axis in Matlab histogram
Mons - no, I don't think that is the way to go about converting the y-axis to percentages. Remember, the ticks along the y-axis...

11 years ago | 2

Answered
Problem using 'getkey'.
The error message Undefined function or variable 'getkey'. is telling you that MATLAB can't find the function *getkey* wi...

11 years ago | 0

| accepted

Answered
I need to write a program that a user inputs a function, the function's derivative, and their initial guess of the root, and then with the Newton Raphson method find the root (or a number with a very small error close to the root).
m - use <http://www.mathworks.com/help/matlab/ref/inline.html inline> after you have requested the function expression from the ...

11 years ago | 1

| accepted

Answered
saving locations of Matlab on macbook
See <http://www.mathworks.com/help/matlab/matlab_env/matlab-startup-folder.html#bujzfnl> for information on setting the start up...

11 years ago | 0

Answered
How to plot convergence graph using bisection method code
Sarah - as the bisection method is a root finding algorithm, I suspect that what you want to plot (from each iteration of the *w...

11 years ago | 2

Answered
How to display different columns from excel file using uitable on MATLAB GUI?
Mary - note the line of code that you are using to set the data within the uitable set(handles.uitable1,'data',raw) You ...

11 years ago | 0

Answered
Identify column headers in a text file
Louis - why not try using <http://www.mathworks.com/help/matlab/ref/importdata.html importdata>? Look for the example where the...

11 years ago | 0

| accepted

Answered
How to set visible off in pushbutton after clicking.
Ariel - you've assigned the following callback to the *PLAY* button function [] = game(varargin) with a variable list of ...

11 years ago | 0

| accepted

Answered
Passing variables in query retrieves no data ...
Rafia - I'm trying to understand your query: select MW from Table1 You are selecting something called *MW* from *Table1*...

11 years ago | 0

Answered
Determine the X coordinate in the 2D plot???
Nitesh - get the index of the minimum value of y and use that index to access the corresponding iteration. So [ymin, yminId...

11 years ago | 0

| accepted

Answered
Matlab GUI communication with Arduino
Patrick - presumably you have a function that you wish to call that will read your three sensor data values from the Arduino. A...

11 years ago | 0

Answered
How to implement logical structure in Radio Button Group with GUI
busta x - your condition is comparing the handle for each radio button to 1, and not comparing the value of the radio buttons. ...

11 years ago | 1

Answered
Matlab 3D Plot
Sd - try adding the following lines of code to the end your script (which runs just fine) close all; figure; hold on;...

11 years ago | 0

Answered
Referring to multiple columns
Ahmet - if *mat* is your matrix, then to get the first two colums (and all rows) you could do mat(:,1:2) which would give...

11 years ago | 5

| accepted

Answered
Adding matrices in 4D to 3D
André - I think that you have the right idea, it is just how you go about initializing the *total_hitrate_matris(:,:,1)* which i...

11 years ago | 0

Answered
Saving matrices to a text file
kajalschropa - why not use <http://www.mathworks.com/help/matlab/ref/save.html save> and save the matrix to a mat file after the...

11 years ago | 0

Load more