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
  • Most Accepted 2021
  • 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

보기 기준

답변 있음
Hide RGB image in gray scale image using LSB Replacement
Here. You either need a much larger host image, or you need to reduce the payload size. The payload can be reduced by reducing...

약 1시간 전 | 0

답변 있음
how to make my graph in center without moving it or dragging it to the center
There's no need for all this code repetition. The cases should not be nested. Create the unmodified vectors, create the modifie...

약 4시간 전 | 0

| 수락됨

답변 있음
Frosty Filter: To create effect like frosted glass
There isn't really a tool made for this within IPT or base MATLAB. You can certainly roll your own, or you could write a small ...

1일 전 | 1

답변 있음
plotting x y cartesian coordinates
This isn't the core of the problem, but the way you wrote the x and y vectors causes them to be stored as 4x3 matrices. When yo...

2일 전 | 0

답변 있음
Is applying a binary operator (+,-,*,/) to char arrays supported by MATLAB or just a "trick"
MATLAB is a weakly-typed language; consequently, implicit type conversions tend to happen all the time. I don't know where (or ...

2일 전 | 0

답변 있음
How to go back to the input in a if?
This is a start %M=Righe della matrice A m = 4; %N=Colonne della matrice A nrange = [3 13]; % pull parameters out for fle...

2일 전 | 0

답변 있음
How to detect percentage of a color range inside an Image?
Something like this: A = imread('coloredChips.png'); % i just grabbed a picture that had some greens imshow(A) minvalue =...

3일 전 | 0

답변 있음
Mean filter with kernel size
This is a routine uni project. There are a lot of existing examples on the forum. Assuming the filter kernel is rectangular ...

3일 전 | 0

답변 있음
Highest value number in a repeating array of ascending numbers
If those simple rules can be depended upon, then A = [1;2;3;1;2;3;4;5;1;2;3;4;5;6;1;2]; seqpeaks = A(circshift(A==1,-1))

3일 전 | 2

| 수락됨

답변 있음
To save an image using imwrite
You'll need to decide whether you want to scale the data. Toward that end, you'll probably need to decide whether these images ...

3일 전 | 1

답변 있음
"Index in position 2 is invalid. Array indices must be positive integers or logical values" when performing a for loop
MATLAB uses 1-based indexing, so UI(j,0) isn't a valid index. You can just use 1 for the first column. The loop isn't really...

3일 전 | 0

답변 있음
Plot from a result obtained in local functions
Just get the vector returned by each of the local functions when you call them. Then you can plot them. Pmax_1 = max_press1(W1...

3일 전 | 0

답변 있음
Plot has wrong x-values
The values are not wrong. There are just few values, so the lines connecting the points make the appearance of nonzero data whe...

3일 전 | 0

답변 있음
Cell Array Reshape Operation
There are probably other ways, but... % a patterned test array A = repmat({(1:16).', (17:32).'; (33:48).', (49:64).'},5,5) ...

4일 전 | 1

| 수락됨

답변 있음
corners of rectangle by center point
You mean basic addition and subtraction? c = [-9.9366 1.6890 1.3800]; w = [0 1.7 0.3]; v = c + w/2.*[0 -1 -1; 0 1 -1; 0 1 1...

4일 전 | 0

| 수락됨

답변 있음
Why does this algorithm yield an 'incorrect' result?
This is a consequence of accumulating the small errors inherent to floating-point representations of numbers. A = 0.2; S = 0; ...

4일 전 | 1

| 수락됨

답변 있음
Elementwise indexing of a vector by a multidimentional array
I have no idea what's ideal for gpuArray, but this is how it would be done with linear indexing. T = 11:20; % a vector A = ran...

4일 전 | 0

답변 있음
How do I change the color distribution in contourf?
This probably isn't exactly what you want, but I think that an inpainting+marker approach would be visually misleading. In this...

4일 전 | 0

답변 있음
Height of a figure spontaneously changes.
It's seems like the figure properties aren't updated immediately. You're reading the properties before they're ready and then t...

5일 전 | 1

| 수락됨

답변 있음
bin2gary: Conversion to char from logical is not possible
The output of dec2bin() is a character array. If you want to do logical operations on it, you have to convert it first. x = ...

6일 전 | 1

답변 있음
I have 2d images in JPEG format created by matlab program and I want to convert them into .STL files using matlab code
Well, here's a half-baked answer, but anyone is free to do better. I just grabbed this mesh tool from the FEX and gutted it to ...

6일 전 | 1

| 수락됨

답변 있음
find out char in cell array
If all you're trying to do is get a logical indicator of which char arrays in a cell array start with a particular character, yo...

7일 전 | 0

답변 있음
how can i use my function directly on a array without having x and y?
You don't need to specify x and y when calling imagesc(). If you handle the input arguments like this: A = imread('cameraman...

8일 전 | 1

| 수락됨

답변 있음
Match real X, Y, Z, positions with calculated positions
This is a generalized example of finding and evaluating distances. I'm assuming here that simple euclidean distance is an appro...

10일 전 | 0

| 수락됨

답변 있음
How do i change color in a 3d animated plot over time?
Use hold and only draw one segment at a time. Note that for N points, there are N-1 segments, hence the length of the color tab...

10일 전 | 0

| 수락됨

답변 있음
1-bit TIFF images having more than 1 channel are not supported.
This is happening because img is of class 'logical'. You expand img to MxNx3 (img3). When writing the TIFF, if the BitsPerSamp...

10일 전 | 0

| 수락됨

답변 있음
Animated GIF contains offset in consecutive timestamps
To be more precise, the file does not contain any frame offsets. All the frames are positioned at [1 1]. The problem is that t...

10일 전 | 0

답변 있음
How write binary image pixel values to a text file such that each row contains only one pixel value of 8bit?
I'm no wizard with fprintf(), but this is one way to deal with it. I_in=imread('peppers.png'); B = cellstr(dec2bin(I_in,8));...

11일 전 | 0

| 수락됨

답변 있음
average image intensity problem
You're converting the images to floating point using double(). Use im2double(). Tools like imshow() or imwrite() expect data...

11일 전 | 0

| 수락됨

답변 있음
How can I show the scale of my arrow in a quiver plot?
Oof. This is one of the many reasons I don't like dealing with quiver plots. There are a few tools on the File Exchange that m...

11일 전 | 0

| 수락됨

더로드