Community Profile

# DGM

Last seen: en dag ago 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. Since the IT clowns hosed the mail server config, I only check my email once every month or two. If you're sending me questions about the forum, you won't get an answer. If you're sending me questions about my own FEX submissions, feel free, but accept the likely delay. Alternatively, ask a question on the forum and @DGM me so I'll get notified.

All

#### Content Feed

View by

Unevenly Map Data to an RGB Map?
If you want to take your colormap and shift it toward one end or the other for some reason, you might be able to do something li...

ungefär 19 timmar ago | 0

Is it possible to go through the elements of an array without resorting to length in a for loop?
You could do something like this a = [1 2; 3 4]; for k = a(:).' % reshape a into a row vector if k>2 fprintf('%d...

en dag ago | 2

| accepted

How to order colors (RGB) in my own colorbar?
I think this is an interesting question. Being "interesting" doesn't mean that it's a problem with a unique solution though. A...

en dag ago | 1

Submitted

Image Manipulation Toolbox
A large collection of image manipulation tools of varying utility

Submitted

Image blending functions
Image blending & compositing with support for 4D images, influence scaling, and several uncommon modes

Writing RMSE fomula in Matlab
Assuming that the inputs are of comparable scale and of floating-point class: rmse = sqrt(mean((A(:)-B(:)).^2))

3 dagar ago | 0

Line Plot with Highest value in the middle
You mean y = [0, 5, 0]; plot(y) If you mean something else, you'll have to elaborate.

3 dagar ago | 0

Locate and extract values from one array to another
Use ismember() or (more likely) ismembertol(). Without knowing what the data and references look like, I'll have to leave that ...

3 dagar ago | 0

How can I create a binary mask?
Without having clear technical goals, I'm just going to assume that no technical requirements exist for shape or density. I'm g...

3 dagar ago | 0

| accepted

How to smoothen contourf plot to make it look better
You need to use a finer mesh if you want the contour to appear smoother. This is complicated by the fact that all I have is a b...

4 dagar ago | 0

| accepted

want to draw a graph of a derivative
Something like this: % parameters rmax = 262; Wmax= 10.6*pi; % create values x = -rmax:rmax; y = x.'; rsq = (x.^2 + y.^...

4 dagar ago | 0

| accepted

How to create a matrix with special block diagonal structure
Here's one way. I'm sure there are plenty of others. n = 8; sz = sum(1:n); A = zeros(sz); idx0 = 1; for k = 1:n A(i...

4 dagar ago | 0

| accepted

multiply values in different rows
I'm going to guess that this is what you're after: A = [2 3 1 4; 8 5 2 3; 1 2 6 7; 6 8 4 1]; B = [0.1; 0.5; 0.4; 0.2]; C = [1...

4 dagar ago | 0

| accepted

hey can any one help me with this error?
Okay, then that's what I suspected. Move the function section into its own file and save it. You can't have the function insid...

4 dagar ago | 0

| accepted

HOW TO ADD MSE TO EXISTING TOOL (CODE)?
Use immse() A = imread('peppers.png'); % some reference image B = imnoise(A,'gaussian',0.001); % a modified copy immse(A,B)...

4 dagar ago | 0

i have create a figure like circle
Try something like this. % parameters rmax = 262; Wmax= 10.6*pi; % create values x = -rmax:rmax; y = x.'; rsq = (x.^2...

4 dagar ago | 0

| accepted

How to find the center of matrix
This seems fairly straightforward. % a test array F = zeros(5); F(2,2) = 10; F(4,4) = 10; % global sum of F Ft = sum(F(:...

4 dagar ago | 0

| accepted

Draw a solid bounded by many surface
These answers demonstrate one possible method for plotting the truncated surfaces. It's up to you to apply it to your assignmen...

4 dagar ago | 0

How to formulate the following vector?
Something like this should work: V = reshape([1:size(R,2); R(4,:)],1,[]);

5 dagar ago | 0

Plot Boxes then Plot them in the original photo ?
The above comment should suffice if all you want is to plot with polyshape. If you actually want to modify the image without ch...

5 dagar ago | 0

| accepted

I want to imread multiple selected files via uigetfile
This assumes that the images are all simple I/RGB images (not indexed images, no RGBA images or multiframe GIFs) [fname dirname...

5 dagar ago | 0

MATLAB Answers Wish-list #5 (and bug reports)
Well, I skimmed a bunch of these threads (you might have noticed) and I didn't see anything about this sort of thing, so I'll ju...

6 dagar ago | 0

how to split a string
To address the OP's particular request: linew = 4; teststr = '123456789'; excess = rem(numel(teststr),linew); output = res...

7 dagar ago | 0

convert vector of character to number
Are the inputs always single characters? Are the inputs only A or B? Are the inputs always letters? Does case matter? Here's...

7 dagar ago | 0

multi-dimensional array - summing the layers (combining)
To sum along a given dimension: dim3sum = sum(val,3);

7 dagar ago | 1

| accepted

showing warning in command window
Yes, as I mentioned, you need to rename that file or move it somewhere off the search path so that MATLAB doesn't try to use it....

7 dagar ago | 0

Without any context, all anyone can give is an answer without context. min(inp(:)) % this is the global minimum of inp max(in...

7 dagar ago | 0

i have an error in imshow
You likely have a user-created file called image.m somewhere on the path. You can try to see what is on the path by doing whic...

7 dagar ago | 0