Community Profile # 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.

#### Statistics

All
• • • • • • • • • • • #### Content Feed

View by

Derive values of alphabet
For a numerical approach: https://www.mathworks.com/help/matlab/math/systems-of-linear-equations.html % coefficient matrix A ...

5 hours ago | 0

| accepted

I am doing a project in matlab,first time using it,and our prof sent us this code,can someone explain to me what thats doing? Thank you.
Without context, I doubt anyone can tell you anything more than a literal reading of the code. This is why documentation (a syn...

5 hours ago | 0

How can I put this MSE equation into MATLAB?
You could use immse(), or you can do it manually: A = randi(100,10,1); B = A + randn(10,1); % use immse() mse1 = immse(A,B...

6 hours ago | 0

How can match a digital image in the visible with a thermal image?
If they have the same aspect ratio, you can simply adjust the size with imresize(). If the aspect ratio differs, then you'll ha...

7 hours ago | 0

Increase hue of image
You don't increase hue, you rotate hue. You can convert the image to a polar model and then add/subtract and mod() the result to...

8 hours ago | 0

Imfuse with 3 images
The documentation for imfuse() is pretty transparent. The default mode is 'falsecolor', wherein two monochrome images (e.g. A a...

10 hours ago | 0

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

16 hours ago | 0

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

17 hours ago | 0

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

18 hours ago | 0

| accepted

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

19 hours ago | 0

I am trying to the row number of '3/8' in a column of text data (52x1) n

1 day ago | 0

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

1 day ago | 0

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 day ago | 0

| accepted

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

1 day ago | 1

| accepted

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 days ago | 1

| accepted

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 days ago | 1

| accepted

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 days ago | 0

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 days ago | 0

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

3 days ago | 1

| accepted

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 days ago | 0

| accepted

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

6 days ago | 0

| accepted

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

6 days ago | 0

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

6 days ago | 0

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

7 days ago | 0

| accepted

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

8 days ago | 0

| accepted

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 days ago | 0

| accepted

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 days ago | 0

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

10 days ago | 0