Answered
how compare two cplumns from different matrix;
Hallo Thodoris. [~, ii] = min(abs(bsxfun(@minus,A(:, 1)',B(:,1)))); % These are the row indexes of B(:,1) which are neare...

9 years ago | 0

| accepted

Answered
Imaqtool cannot find any devices
As from Matlab version R2014b, you must manually install the video adapters for your camera. Read: <http://nl.mathworks.com/hel...

9 years ago | 0

Answered
Using a timer to execute a function
A simple timer: t = timer('BusyMode', 'Drop', ... 'ExecutionMode', 'fixedDelay', ... 'S...

9 years ago | 0

| accepted

Answered
link x-axis from one figure with y-axis from another figure
You could create a callback and then add a listener. So a minimal example would be: CallBack: function test(src, evt, ax...

9 years ago | 0

| accepted

Answered
How to change the cell color of UITABLE in MATLAB?
Based on <http://nl.mathworks.com/help/matlab/ref/uitable-properties.html this> and <http://stackoverflow.com/questions/7409766/...

9 years ago | 0

| accepted

Answered
How to save data of UITABLE in Workspace
If you want to get the data whenever the data change use this: f = figure; d = randi(100, 7, 3); t = uitable(f,'Dat...

9 years ago | 1

Answered
Array input through MATALB - GUI
Yes it is possible with <http://nl.mathworks.com/help/matlab/ref/uitable.html uitable>. Check also the <http://nl.mathworks.com...

9 years ago | 0

| accepted

Answered
YY axis scale on plotyy
Try to use linkaxes(AX, 'xy')

9 years ago | 0

| accepted

Answered
Question about YDir, reverse
It should be set(gca, 'Ydir', 'reverse') The |plot| as mentioned above does not have a property |Ydir|. However...

9 years ago | 0

Answered
How to translate cartesian coordinates into polar coordinates?
Your function is |cart2pol|. Check <http://nl.mathworks.com/help/matlab/ref/cart2pol.html here> for more help.

9 years ago | 0

Answered
How can I use a USB webcam on Ubuntu linux 64-bit with MATLAB R2014b?
I have exactly the same problem with the same configuration (Check a similar post <http://www.mathworks.com/matlabcentral/answer...

9 years ago | 0

Question


Install video adapters in R2014b on Ubuntu 14.04 64bit system
I have a Ubuntu 14.04 64bit system on which I have installed R2014b. With previous versions of the Image Acquisition Toolbox, ...

9 years ago | 0 answers | 0

0

answers

Answered
Index of first empty cell in array?
If you want to add a certain value to each of the none empty rows in column 3 maybe you try the following: array(cellfun(@(x...

9 years ago | 0

Answered
How can I change the elements of a matrix when hovering over its figure with the mouse?
Hi Bogdan! Maybe you can try this: close all; clear all; clc; fig = figure; set(fig, 'Color',[0,0.5,0.5]); g...

9 years ago | 0

| accepted

Answered
set the values to nan
Try this Hana B1 = tb1; B1(A1==0) = NaN;

9 years ago | 0

Answered
How can i make a n-pointed star?
Hello student from Korea! Why don't you try this? q = 4; % connect every qth point out of p points mingon = 2*q + 1;...

9 years ago | 5

Answered
How do I replace zeroes in a <logical> 0 and 1 array with NaNs?
It didn't work because you were trying to replace logical values (the zeros/false) with doubles (the NaN). So first, convert th...

9 years ago | 1

| accepted

Question


Output class object inherits the property/value pairs of a figure
I am trying to write a simple class. The purpose of the class is to create a figure. What I do is: classdef myFig < ha...

9 years ago | 2 answers | 0

2

answers

Answered
Rendering issues in Matlab R2014b version when using patch
Thank you Mike for you input. The simplest workaround that can overcome this problem is setting the value |lm| very low. i.e. ...

9 years ago | 0

Question


Rendering issues in Matlab R2014b version when using patch
I am using |patch| to shade an area in a graph. The code that I am using is simple: lm = 0; s = 1:1000; d = [ones(1...

9 years ago | 3 answers | 1

3

answers

Answered
uicontrol text background color - value must be numeric
In your |uicontrol| when you use the |Fontsize| property remove the apostrophes around 12. It should be double not string.

9 years ago | 0

| accepted

Answered
How do I remove rows with NaNs from my raw data?
I assume that your data are of nx1 or 1xn size. Then to delete the use this: data(isnan(data)) = [];

9 years ago | 0

Answered
Comparing two arrays of different length
You could this to find it: idx = ismember(A', B', 'rows'); c = 1:size(A, 2); d = c(idx); % is your answer

9 years ago | 3

| accepted

Answered
Logical indexing when index exceeds matrix dimensions
Thank you per. It is true what you say about the positions. However, I am talking about difference in the sizes of the indexing ...

9 years ago | 0

Answered
How can I tell matlab to go back and recalculate?
Maybe with a |while| loop. Let's say that you want to recalculate if your result is |10^-2| grater/smaller from your certain va...

9 years ago | 0

| accepted

Question


Logical indexing when index exceeds matrix dimensions
I am mentioning the following example as a case of logical indexing which I only came across very recently. x = randi([1 2]...

9 years ago | 3 answers | 0

3

answers

Question


Get the facecolor of a contourf plot
I would like to find the |facecolor| of the the |contourf| patches. For example if : [X,Y,Z] = peaks; figure conto...

10 years ago | 1 answer | 0

1

answer

Answered
display several rectangles in color on your image
You can plot it! plot([x1 x1+a x1+a x1 x1], [y1 y1 y1+b y1+b y1]) where |(x1, y1)| is the starting point of your rectang...

10 years ago | 0

Answered
Help with acquiring means of different columns using on one single matlab code
* For the first question: ismember(Gender, 'Male') Will give a logical vector with true(1) the males and false(0) the f...

10 years ago | 0

| accepted

Answered
Get coordinates to point
h = plot([x1,x2],[y1,y2]) x = get(h, 'xdata') % the x values y = get(h, 'ydata') % the y values

10 years ago | 0

Load more