Community Profile

photo

DGM


Last seen: Today 2015 이후 활성

Hi, I'm nobody.
I don't belong here, but I have nothing better to do.
Matlab used to be part of my work.
Now it's part of my hobbies.
That's pretty sad, really.

Statistics

All
  • 6 Month Streak
  • Guiding Light
  • 5-Star Galaxy Level 4
  • Revival Level 3
  • Knowledgeable Level 4
  • Explorer
  • Thankful Level 2
  • First Answer
  • Personal Best Downloads Level 3
  • First Review
  • First Submission

배지보기

Content Feed

보기 기준

답변 있음
Adding a row vector into the diagonal of another vector with m, n dimensions using for loop.
Actually, using a loop was pretty dang simple, now that I tried it. A = randi(9,5,10); b = 11:20; diagonalthing(A,b) dia...

약 3시간 전 | 0

답변 있음
How to get the centerline of a binary region
There's this. A = imread('arc.png')>128; B = bwmorph(A,'skel',inf); % skeletonize B = imfill(B,'holes'); % get rid of any...

약 4시간 전 | 0

답변 있음
how to remove [0,0,0] cell from an array
Consider: C = {rand(2,3) rand(3,3) rand(4,3) [0 0 0] rand(5,3)}.' iszerotuple = cell2mat(cellfun(@(x) isequal(x,[0 0 0]),C,'un...

약 10시간 전 | 0

답변 있음
grazing goat problem, how much of the area can the goat graze ?
Your answer is reasonable. As a point of verification: rf = 1; rg = 0.8; % intersection point locations % could also use ...

약 11시간 전 | 0

답변 있음
How are the indices computed in gray2ind(...)?
Here's an example for a uint8 image: A = imread('cameraman.tif'); maplength = 32; [B bmap] = gray2ind(A,maplength); % as...

약 14시간 전 | 0

| 수락됨

답변 있음
make a matrix out of list
It's not really clear if you want the contents of the file to be read into an array, or whether you just want a numeric (or othe...

1일 전 | 0

| 수락됨

답변 있음
Adding noise to image and removing it with average filter
The line mentioned in the error is certainly nonsensical, but afaik it shouldn't actually throw an error (at least in R2009b - R...

1일 전 | 1

답변 있음
Why isn't my matrix being filled?
When you define a function, you need to describe its input arguments and output arguments. This function definition has no in...

1일 전 | 0

답변 있음
Menu command list of colors converted to integers
I know this is part of the other question, but to clarify, the menu() command simply returns the index of the selected element w...

1일 전 | 0

답변 있음
Convert nested text cell array
I'm sure there's a simpler way, but idk. This will convert to a table. Note that the table columns are cell vectors. This i...

1일 전 | 0

답변 있음
Loop iteration not working
Consider: x = 1:10 This expression by itself results in x being stored as a vector for y = 1:10 y end y In a loop sta...

1일 전 | 0

답변 있음
No output from a for and elseif loop
That should be readlines(). P is a cell array of numeric vectors, so address it accordingly. Any assignment to J overwrites th...

2일 전 | 0

| 수락됨

답변 있음
Turning an entire script into a function
Try something like this. function [playerwon] = Battleship3(boardsize,numofguess,numships) % playerwon = Battleship3({boards...

2일 전 | 0

답변 있음
Taking a string input and transferring it to a integer
Meh. numbands = 4; colornames = {'black','brown','red','orange','yellow','green','blue','violet','gray','white','gold','silv...

3일 전 | 1

| 수락됨

답변 있음
Cropping images around the center of an image with a particular size
I don't know how you're getting that huge size. EDIT: I know why. I'll mention that at the end. The code will return a 225x22...

3일 전 | 0

| 수락됨

답변 있음
Remove a "plane" from my 3d plot
You could try to clip off the excess points with NaN and be left with a gap in the surface at the joint, or you could just avoid...

3일 전 | 2

답변 있음
Error in array bounds
% ... % this loop has been simplified to the point that it works % for sx = 0.01:5 % s = [sx, 0, 0; % 0, sx, 0...

4일 전 | 0

답변 있음
How can I add more colors to semilogy?
The colors which are automatically used when plotting things with no explicitly-defined colors are specified by the axes 'coloro...

4일 전 | 0

답변 있음
Sampling pixel intensities according to distance matrix...
Disregarding splitapply() for a moment, the issue of working with non-integers can be avoided by using the histogram tools to bi...

5일 전 | 0

답변 있음
I cant edit the textboxes in app designer. how do i fix this?
This might be related: https://www.mathworks.com/support/bugreports/1797911 https://www.mathworks.com/matlabcentral/answers/41...

5일 전 | 1

| 수락됨

답변 있음
How do I confront the value of a matrix?
I'm not really sure what this is supposed to mean. %(x+y+z):3=value16 What guarantees that the sum of x,y,z is less than 3? ...

6일 전 | 0

| 수락됨

답변 있음
how to place the rectangle for all the blob
The second loop needs to be inside the first one, otherwise it's only going to plot the bounding boxes for the blobs in the last...

6일 전 | 0

| 수락됨

답변 있음
cell array to logical
In order to make a logical array of it, you'll have to specify the conditions where the output is true. Consider two examples: ...

6일 전 | 0

답변 있음
Displaying objects found with bwconncomp
I never really use bwconncomp, but I guess you could do something like this. % create test image A = imread('coins.png') > 8...

6일 전 | 1

답변 있음
Image matrix cell color
Let's say you just want to change one pixel A = imread('peppers.png'); newcolor = [230 50 185]; B = A; B(50,50,:) = newc...

7일 전 | 0

| 수락됨

답변 있음
Sir i am getting error :function isgray has been removed. Please suggest me which version of matlab i should use.
As Steven notes, there are potential ambiguities with trying to do this. In my opnion, isgray() and isind() make some questiona...

7일 전 | 0

답변 있음
Dark Mode editor for MATLAB
Similar to @Jacob Hartzer, I don't think scheming the editor is a sufficient solution. I described my own workaround in this th...

7일 전 | 0

답변 있음
What indicate the values in colorbar?
In the first example, it doesn't mean anything. It's not referring to the image as displayed by imshow(), since imshow() is not...

7일 전 | 1

답변 있음
How to replace every value with the index of the value to the left of it
There's this: x = [ 2 3 4 5 6 ; 8 9 10 11 12 ] idx = reshape(1:numel(x),size(x)); out = [zeros(size(x,1),1) idx(:,1:end-1)] ...

7일 전 | 0

답변 있음
image quadrant one by one and move to next quadrant
This should be a start s = [768 1024]; % generate three masks that can be transformed and combined % to create the desired ...

7일 전 | 0

| 수락됨

더로드