Community Profile

photo

DGM


Last seen: Today Active since 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

View badges

Content Feed

View by

Answered
Output argument not assigned on some execution paths
The problem occurs in these two cases: if N_Start_Freq<0 sprintf('%s','raise up f') return end if N_Stop_Freq>fs/2...

ongeveer 5 uur ago | 0

Answered
for loop with three variables in 3d matrix
Try RH_ = 50 + 50*rand(100,4,3) % example data RH_excess_days = squeeze(sum(RH_ > 99,1))/24

ongeveer 7 uur ago | 0

Answered
Customizing the color channels for fusing two images in
This is a basic image blending operation. As such, I am going to elect to do this with MIMT tools instead of native MATLAB/IPT....

ongeveer 7 uur ago | 0

| accepted

Answered
understanding an if statement
This isn't very clear usage and looks like invalid syntax at first glance. It would help to know what the surrounding code look...

ongeveer 8 uur ago | 0

Answered
I am trying to the row number of '3/8' in a column of text data (52x1) n
Tube_data = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/780803/Copper%20Tubes.xls'); Column_1 = T...

ongeveer 24 uur ago | 0

Answered
when i run the program, the line (202 column 1) is misplaced or improperly nested, why ?
That if/else structure is messed up and preventing ML from finding the end of the prior function scope. % "elseif" instead of...

ongeveer 24 uur ago | 0

Answered
adding 2D array to 3D array
An example: A = randi(100,3,1,4) B = A(:,:,[1 1:end]) Alternatively, you can do the concatenation just using cat() C = cat(3...

1 dag ago | 0

| accepted

Answered
adjust brightness of image
Consider the following examples. Note the changes to the image, the changes to the transfer function shape and endpoint locatio...

1 dag ago | 1

| accepted

Answered
I am trying to use imshow to take data in a .txt file and print out the image made from the data.
I'm going to guess that this is the same homework assignment. If not, similar operations should apply. The example only shows ...

2 dagen ago | 1

| accepted

Answered
Create image from pixels using two vectors and their grayscale value
I'm pretty sure there are other ways to do this, but here's one way. % build example image and position data A = imread('coi...

2 dagen ago | 1

| accepted

Answered
Mean squared error and NMSE
The title is about NMSE, but there's no mention of it. I'll refer to both. How to back calculate the reference from an estim...

2 dagen ago | 0

Answered
rgb2gray by 5*5 vicinity marix
Errors aside, this doesn't even look complete. [filename, pathname]=uigetfile('*.*','Select the image file'); Address=strcat(p...

2 dagen ago | 0

Answered
Insert and write row with condition
I'm sure there are other ways, but here's one example. % create test array nb = 4; sb = 4; A = [rand(nb*sb,2)*1000 rand(nb*s...

2 dagen ago | 1

| accepted

Answered
making repetitive code less clunky
You could simplify this with a loop if you wanted, though I'm sure there are other ways. Bear in mind what I mentioned in my co...

3 dagen ago | 0

| accepted

Answered
each columun of a 2D matrix multiply with a 3D array
This is something, but I bet there are other ways too. This is about 10x faster on my hardware/version, but only about 2-3x fa...

5 dagen ago | 0

| accepted

Answered
Copy-pasting variables (values) to edior in 2021b
Just don't rely on some sort of automagic formatting of pasted content. If you want to save an array variable as a literal cons...

5 dagen ago | 0

Answered
To save each of sub-indices (luminance, contrast and structure) in SSIM
Unless you need something special, you should be able to do this with standard syntax for ssim(). Mind you, the SSIM is the mea...

5 dagen ago | 0

Answered
please give me answer what is wrong
Use elementwise division. x = 0:0.1:103; y = ((28*log(x) - 2*x - 12*x.^2.*log(x) - 4*x.^3.*log(x) - 12*x.*log(x) - 2*x.^2 - (2...

6 dagen ago | 0

| accepted

Answered
How to turn text into numbers
Well I'm sure there are more robust ways, but if all the file ever has is those two lines in that specific order with that speci...

7 dagen ago | 0

| accepted

Answered
How to close open contours
The contours are open because that's what describes the data. To close the contours misrepresents the behavior of the data at t...

9 dagen ago | 0

| accepted

Answered
Problme with Text analysis
I'm terrible with regex, but this might get you somewhere. Replaces everything but lowercase alpha and underscores. A = {'9.ba...

9 dagen ago | 0

Answered
I am missing the test signal "WashingMachine-16-8-mono-200secs.mp3" from the denoise example.
That should be included with the audio toolbox after R2019a. The files should be in $MLROOT/toolbox/audio/samples/ where $MLRO...

9 dagen ago | 0

Answered
Segment Image and Save as New Picture
You can't have an image of "just the dog", in the sense that the image must be a rectangular array. The background must be some...

9 dagen ago | 0

Answered
what is a(n) MATlab code that can help me calculate the volume of a cylinde then increase that result by 20% to get a result of 18m.
h0 = 15; dV = 0.2; hf = h0*(1+dV); fprintf('Oh my god, it''s %.2f meters tall! Aieee!',hf)

9 dagen ago | 0

| accepted

Answered
How to normalize signal to have mean=0 and amplitude 0 to 1
If you have a dataset where the mean is zero and the amplitude is within the interval [0 1], then the entire dataset is zero-val...

10 dagen ago | 0

Answered
Remake this without a loop
What's wrong with just using the test you're already doing? In the case you've given, the vector is unnecessary. A(A >= 1.5) =...

11 dagen ago | 1

Answered
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...

11 dagen ago | 0

| accepted

Answered
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...

11 dagen ago | 1

| accepted

Answered
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...

11 dagen ago | 0

| accepted

Answered
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 ...

12 dagen ago | 0

Load more