Question

How to find the sum of all column vectors of the elements on the kth diagonal of a square matrix in Matlab ?
Hello, sir/madam. I need your help to find a solution to the following case. n = 3; A = magic(n) B = diag(diag(A,0))...

8 years ago | 2 answers | 0

### 2

Question

Sum of array elements at 45° degree oblique dimension in Matlab
Hello everyone! I need your help! Can anyone tell me how to find the sums (in red) of magic(3) array elements at 45° degre...

8 years ago | 1 answer | 0

### 1

The Bilinear Interpolation Embedded Matlab Function Vs Bilinear Interpolation 'Re-Written or Coded' Function
The following script produces the result similar to the result produced by the Matlab embedded bilinear function: function ...

8 years ago | 2

| accepted

Question

The Bilinear Interpolation Embedded Matlab Function Vs Bilinear Interpolation 'Re-Written or Coded' Function
Hello everyone! I have a question. Can you please help me to understand why the embedded matlab function of the bilinear inte...

8 years ago | 4 answers | 0

### 4

Question

A question about different image size generation using Matlab
Hello everyone! I need your help! Can anyone please tell me why, the Y1 becomes empty and its size changes when I input a tru...

8 years ago | 1 answer | 0

### 1

I want to overwrite some specific border lines in Matlab, can anyone help ?
A = magic(4) B = circshift(A,[1 1]) C = padarray(B(2:end,2:end),[1 1],'replicate','pre')

8 years ago | 0

| accepted

Question

I want to overwrite some specific border lines in Matlab, can anyone help ?
Hello! I have a situation like this: <</matlabcentral/answers/uploaded_files/53744/Q1.png>> And, I want to use the enc...

8 years ago | 1 answer | 0

### 1

Question

Can you please help to find out why I am obtaining a negative PSNR value in the following Matlab code ?
Dear Experts, I am getting a negative PSNR value with the following Matlab code. Can you please help ? % main program t...

8 years ago | 0 answers | 0

### 0

Question

What is an alternative FIND function that find indices and values of both ZERO and NONZERO elements in Matlab ?
Hello, I am using Matlab and I would like to know how to find indices/values of both *zero* and *nonzero* elements of a given...

8 years ago | 2 answers | 0

### 2

Question

In an assignment A(:) = B, the number of elements in A and B must be the same
Can you please help me to correct the above mentioned problem in the following matlab code ? E = [5,200]; Selected edge va...

8 years ago | 1 answer | 0

### 1

Question

How to set conditions to modify the pixel values: (1) at the right(x+1,y)-and-left (x-1,y); and (2) at the top (x,y-1)-and-bottom (x,y+1) with reference to the central pixel (x,y)
Hello! I need your help to 'conditionally' modify the pixels around an arbitrary selected point/pixel at (x,y) using Matlab. ...

8 years ago | 1 answer | 0

### 1

Question

Can anyone help me to find out why I can't replace pixel values at (x, y-1) and (x+1, y) with the value at (x, y) ?
I am using Matlab and I need your help! Assume that the 8 neighbors of the location (x,y) are: top-left (x-1,y-1); top-...

8 years ago | 1 answer | 0

### 1

Question

HELP : Subscript indices must either be real positive integers or logicals - AGAIN
I need your help to solve the problem of subscript index that must either be positive integer or logical. Can any one help to co...

8 years ago | 1 answer | 0

### 1

Question

Can anyone explain why the empty or black holes (or squares) disappear as I add more products (of the weighting function-Wx and pixels values - Nx) in the Y(i,j) sum ?
Hello, I do need your help! Here's the source code that does the bilinear interpolation: _I = imread('LENNA128.bmp'); ...

9 years ago | 0 answers | 0

### 0

Question

I need your help to add a legend to a graph showing two functions labels with different colors
When I ran the following code in Command Window, I get a legend but with only blue color for e1 and e2 functions. In other words...

9 years ago | 0 answers | 0

### 0

Question

How can one create/calculate the (bicubic interpolation) output matrix ?

10 years ago | 0 answers | 0