Community Profile

photo

Miriam


10 total contributions since 2018

Miriam's Badges

  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How to calculate the entropy of a grayscale image.
Hi Ishara, It looks like you are trying to find the height, width, and histogram using the entropy value you found. Maybe try: ...

presque 2 ans ago | 0

| accepted

Answered
gradient of a gradient giving drastically different answer than the del2 operator
With your gradient method you are only taking the derivative along the y dimension, wheras the del2 operator approximates Laplac...

presque 2 ans ago | 0

| accepted

Answered
How to set specific values in an array to a certain color when using imagesc?
You can define your own colormap as follows: x = randi([0 3],10,10); colors = [0 0 1;... % blue for 0 0 1 0;... % g...

presque 2 ans ago | 0

Answered
Why do I have different results?
You should convert data and estimate using double() as well. The RMSE function also contains a squared error calculation where a...

presque 2 ans ago | 0

| accepted

Answered
Unsure on how to achieve goal - Function output isn't right
Have the second for loop end after assigning the value of abs_sol_rad, ie: function [abs_sol_rad]=solarrad(nc,lat,t,I) %% .....

presque 2 ans ago | 0

Answered
counting the number of 1's and 0's in each row
tag123_data = [0;1;1]; scm = randi(0:1,3,16); out_data = xor(tag123_data,scm); n_ones = sum(out_data,2); n_zeros = size(o...

presque 2 ans ago | 0

| accepted

Answered
4D matrix in .txt and .csv
You could reshape your data (https://www.mathworks.com/help/matlab/ref/reshape.html) into a 2D matrix (something like [256x256x2...

presque 2 ans ago | 0

Answered
About FFT of Exponential decay - two-sided
Hi Erick, I think the problem lies in your definition of "Ground_Truth". Based on the website you linked to, it should be def...

presque 2 ans ago | 0

| accepted

Answered
How do I replace "for" loops by matrix multiplication? I am getting confused because of 4 "for" loops. Any suggestions?
dxdy = 1; [x,y,u,v] = ndgrid(-1:1); value = input_data.*exp((-1i*k*(((u-x).^2) + (v-y).^2))/(2*0.2))*(dxdy); S_rows = sum(...

environ 2 ans ago | 0

Answered
I'm getting a blank graph.
You are trying to plot a line using single points. If you would like them to show up, consider using plot(w,abs(X(1)),'o');...

environ 2 ans ago | 0

| accepted