Feeds
답변 있음
How to count annotation dots from am image?
Say the color of the dot is [0, 0, 255]. First convert the image to a logical matrix: BW = im(:, :, 1) == 0 & im(:, :, 2) =...
How to count annotation dots from am image?
Say the color of the dot is [0, 0, 255]. First convert the image to a logical matrix: BW = im(:, :, 1) == 0 & im(:, :, 2) =...
대략 7년 전 | 0
답변 있음
Find and Save Values of Unique Combinations of Two Rows of a Matrix
Input: A = [1 1 1 1 1 3 3 4 4 5 5 5 5 6 6 2 2 3 3 4 4 4 4 5 5 6 6 7 7 8 3 4 6 2 1 3 4 5 7 4 3 1 3 2 1]; ...
Find and Save Values of Unique Combinations of Two Rows of a Matrix
Input: A = [1 1 1 1 1 3 3 4 4 5 5 5 5 6 6 2 2 3 3 4 4 4 4 5 5 6 6 7 7 8 3 4 6 2 1 3 4 5 7 4 3 1 3 2 1]; ...
대략 7년 전 | 0
| 수락됨
답변 있음
sum special rows on a matrix with unique function
To clarify, do you wish to merge rows in A that have the same first four elements? If that's the case, you can try [B, ~, i...
sum special rows on a matrix with unique function
To clarify, do you wish to merge rows in A that have the same first four elements? If that's the case, you can try [B, ~, i...
대략 7년 전 | 0
질문
Is there a way to know which algorithm eig uses?
The supporting document says eig(A,B) uses Cholesky decomposition if A is Hermitian and B is Hermitian and positive definite, ot...
8년 초과 전 | 답변 수: 0 | 0
0
답변답변 있음
How can I find the most frequent character in say a list of words (cell array of strings)?
Are you looking for the most frequent character in each word? if so you can do cellfun(@mode,{'hello','what','is','your','n...
How can I find the most frequent character in say a list of words (cell array of strings)?
Are you looking for the most frequent character in each word? if so you can do cellfun(@mode,{'hello','what','is','your','n...
거의 9년 전 | 0
| 수락됨
답변 있음
Can someone close this question?
First of all, it's .7391, not .7931. The problem with your code is that your value of xstar will not be exactly equal to .7391 (...
Can someone close this question?
First of all, it's .7391, not .7931. The problem with your code is that your value of xstar will not be exactly equal to .7391 (...
거의 9년 전 | 0
| 수락됨
질문
Can you use a single context menu for multiple objects?
Hi all, Say I have ten plots in a single figure, and now I wish to add some context menus to them so that when I right-click ...
대략 9년 전 | 답변 수: 0 | 0
0
답변질문
Multiple objects sharing a context menu?
Hi all, I'm trying to have multiple objects in the same figure share a common context menu. In the menu callback, is there a ...
대략 9년 전 | 답변 수: 4 | 1
4
답변질문
Indexing matrices along a given dimension
Hi all, Say I have two matrices A=[3,2,1;6,4,5]; B=['c','b','a';'f','d','e']; (Note the correspondence between elements ...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Is there a way to install an App on Linux for all users?
Hi all, I'm trying to install a custom App on MATLAB R2014b on a Linux system for all users, but it seems like I can only ins...
9년 초과 전 | 답변 수: 0 | 0
0
답변질문
How to determine the boundary of a patch surface?
For a 3D patch surface object,I want to find the edges of facets that lie on the boundary of the surface. For example, for ...
9년 초과 전 | 답변 수: 0 | 0
0
답변질문
How to interrupt a callback while it's calling another function?
Hi All, The callback of a GUI button in my program calls another function (which takes a long time to run). Is there a way to...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Is there a way to manually set the face normal of a patch face?
Hi all, I have a patch object with two faces that are almost on the same plane, but not exactly, so their lighting is slightl...
9년 초과 전 | 답변 수: 0 | 0
0
답변답변 있음
how to find the weighted centroid, center of mass/barycenter of a 3D grid of points
sum(bsxfun(@times,A(:,1:3),A(:,4)),1)/sum(A(:,4)) Not sure if this is what you're looking for...
how to find the weighted centroid, center of mass/barycenter of a 3D grid of points
sum(bsxfun(@times,A(:,1:3),A(:,4)),1)/sum(A(:,4)) Not sure if this is what you're looking for...
거의 10년 전 | 0
| 수락됨
질문
How do I force breaking from a modal GUI window?
Hi all, I'm been running into this problem several times. Say I have a modal GUI window, and if there is something wrong with...
거의 10년 전 | 답변 수: 1 | 0
1
답변질문
software vs. hardware openGL issue in R2014b?
Hi all, I recently switched to matlab R2014b from R2013b. When I was using R2013b, there was openGL issues about surface ...
거의 10년 전 | 답변 수: 1 | 3
1
답변답변 있음
array comparison. help please!
[~,ind]=ismember(barr,pt(2:end,1)); temp=pt(:,2); temp{1}=0; Sbarr=[barr,temp(ind+1)]
array comparison. help please!
[~,ind]=ismember(barr,pt(2:end,1)); temp=pt(:,2); temp{1}=0; Sbarr=[barr,temp(ind+1)]
거의 10년 전 | 1
| 수락됨
답변 있음
trying to rearange a matrix with 2 vectors of indexes and one vector of values
cf. <http://www.mathworks.com/help/matlab/ref/sub2ind.html sub2ind> LinInd=sub2ind(size(YourMatrix),RowInd,ColInd); Your...
trying to rearange a matrix with 2 vectors of indexes and one vector of values
cf. <http://www.mathworks.com/help/matlab/ref/sub2ind.html sub2ind> LinInd=sub2ind(size(YourMatrix),RowInd,ColInd); Your...
거의 10년 전 | 0
| 수락됨
질문
How to automatically scroll a textbox to end of line?
Hi all, I'm trying to code a calculator, which has an inactive (non-editable) textbox used for display of the input. Is there...
거의 10년 전 | 답변 수: 1 | 0
1
답변질문
How to fix the column width of uitable so the user can't change it?
It seems like column width in a uitable is always adjustable by the user which is annoying sometimes... Is there a way to fix it...
대략 10년 전 | 답변 수: 1 | 0
1
답변질문
CaretPositionChanged callback for editbox not working
Hi all, I'm trying to detect when the position of the cursor in an editbox changes. This is the current code I'm using in the...
대략 10년 전 | 답변 수: 0 | 0
0
답변질문
How to lock the focus on a GUI window?
Hi all, I'm working with a multiple window GUI, and a feature I want is to lock the focus on a specific window at some point ...
대략 10년 전 | 답변 수: 1 | 0
1
답변질문
Assigning a vector to multiple rows of a matrix
Hi all, This is actually something I've been wondering for a while... Say I have a 1-by-4 vector A and a 5-by-4 matrix B. Now...
10년 초과 전 | 답변 수: 3 | 0
3
답변질문
Why are campos and view interlocked??
Hi everyone, I've been playing around with these two parameters for an hour and it seems whenever you change one of them, the...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
convert a number to n-ary format
Hi everyone, How can I implement a function of converting an integer into another numeral system? For example, func(13,2) sh...
10년 초과 전 | 답변 수: 0 | 0
0
답변질문
Problem about specifying truecolor cData for a patch object
Hi all, I'm having trouble with coloring a patch object using cData. My patch object is a triangulated polyhedron, so size(ZD...
10년 초과 전 | 답변 수: 0 | 0
0
답변질문
How do I 'stroke' a surface object?
Hi, When I draw a surface object with surf, is there a way to 'stroke' the outline of that surface to make it better stand ou...
거의 11년 전 | 답변 수: 0 | 0