Question

How to change a 3x3 median filter to 5x5?

My code works, but i need a 5x5 filter not 3x3. I tried to alter the code to get the 5x5 but keep getting an error %% 2. Median...

bijna 2 jaar ago | 1 answer | 0

Question

Is there an alternative to 5x5 median filter in MATLAB?

I want the same result, but without using medfilt2 x=imread('sadimg.bmp'); y= medfilt2(x,[5 5])

bijna 2 jaar ago | 2 answers | 0

Question

5 x 5 median filter with out inbuilt function

I am required to use just median() not medfilt2() Please help with the code %% 2. Median Filter sad1=imread('sadimg.bmp'); ...

bijna 2 jaar ago | 1 answer | 0

Question

using median() instead of medfilt2()

I am not sure how to do part b and well hence c as well. can you help with how to code this my teacher requested using median...

bijna 2 jaar ago | 2 answers | 0

Question

histogram specialization, imhist error

%5f)Make CDF of ‘hist_desired’ and ‘hist_xray2’ and store them into ‘cdf_desired’ and ‘cdf_input’ x_ray2=imread('x_ray2.pn...

ongeveer 2 jaar ago | 1 answer | 0

Question

PWM measurement port conection

Hello! what block I have to connect to PWM generator (2-level 4 - pulses) to measure measurement port output? Thank you in advan...

ongeveer 2 jaar ago | 1 answer | 0

Question

I have a problem with the figure, if you saw the picture below you will find it blurry.. How I can fix this problem

ongeveer 2 jaar ago | 0 answers | 0

Question

This is a part of a code and I want to add something to it, description below

%This is a part of a code and I want to add something to it so instead of Deleting all the Users row from Heff that correspondin...

ongeveer 2 jaar ago | 1 answer | 0

Question

I have a Matrix , and I want to multiply this Matrix with something so I can get zeros

% for an example *(pinv(P1))*P1=unity Matrix I want the same thing : ?*P1=zeros %This ? should be related to P1 like the above...

ongeveer 2 jaar ago | 2 answers | 0

Question

I want to change the size of T so I can Add it to P2 (the size of T should be the size of P1 or the size of P2)

P1=[3 2 4;2 1 1;5 2 3;2 3 7] P2=[2 6 1;1 3 5;4 2 1;5 2 1]; P1_Zero=pinv(P1) T=P1_Zero*P1 Q=P2+T

ongeveer 2 jaar ago | 1 answer | 0

Question

hi I want to solve this problem using posted script.

Problem: Another formula for computing "pi" can be deduced from the identity pi/4 = 4arctan1/5— arctan1/239. Determine the numbe...

ongeveer 2 jaar ago | 1 answer | 0

Question

I want find the reason for this error message.

I am having trouble finding the reason behind this error message. I chechked my function again and again. but do not know why it...

ongeveer 2 jaar ago | 1 answer | 0

Question

how to draw a directional field for this equation?

I am trying to plot directional field for these differential eq.s a) y’= 0.1y-sin(y) b) y’ = y^2-3*y+1 c) y’ = -y(y-2)(y-4)/...

ongeveer 2 jaar ago | 1 answer | 0

Question

How to write following equation with "dsolve" command?

I have written the code as below for the equation : on MATLAB command window, syms y(t); eqn = diff(y,t) == t^2/(1+y^2)...

ongeveer 2 jaar ago | 2 answers | 0

Question

How to write diff (exp(x.*log(x))) on MATLAB command window?

I am trying to compute the derivative using the command diff: syms x diff (exp(x.*log(x))) Error using sym/su...

ongeveer 2 jaar ago | 0 answers | 0

Question

I want the Mathematics equations for the Genetic Algorithm.

the Mathematics equations for the Genetic Algorithm function

ongeveer 2 jaar ago | 1 answer | 0

Question

How do I cite Genetic Algorithm in a published journal or paper, because I use it in my code and I wrote about the documentation in my thesis so I want to cite it?

Genetic algorithm solver for mixed-integer or continuous-variable optimization, constrained or unconstrained, Genetic algorithm ...

ongeveer 2 jaar ago | 1 answer | 0

Question

in the picture below you can find a message which describe what I need to fix in these two equations in the description.

Theta_opt = inv(A + diag(zeta))*b;

ongeveer 2 jaar ago | 1 answer | 0

Question

Best solution to finding repeating characters on a line.

I am looking for any instances of two characters (e/d) being repeated in a row greater then or equal to 10. I just want to eithe...

ongeveer 2 jaar ago | 2 answers | 3

Question

I have a problem with my code, it works fine but the results it isn't correct because the code is not compatible with the equations .. description below

clc; clear; M = 60; N = 36; K = 5; x = rand(1,N); theta = (2*pi)*x; % generated randomly Phi = diag(exp(1i*theta...

meer dan 2 jaar ago | 1 answer | 0

Question

The Loops in the first picture are required, the description is below

%% Suppose I have W and Theta, k=1:K .. K=(any value) let say 10 %% Alfa_k=zeros(1,k); Al...

meer dan 2 jaar ago | 1 answer | 0

Question

I want to return the value of x , description below

%%%%%% I want to return the x value from File 2 to File 1. %%%% File 1 % Total Capacity After Water_filling and Genetic Algo...

meer dan 2 jaar ago | 1 answer | 0

Question

matrices multiplication , the description below

% W,H values is for example .. They can be with any dimension but always the number of rows of H is equal to the number of colum...

meer dan 2 jaar ago | 1 answer | 0

Question

the description below .. for loop and matrices

% when o=1 I want to multiply the second row of H with the second column of W and sum it with the multiplication of the third ro...

meer dan 2 jaar ago | 1 answer | 0

Question

in each iteration I want to get the sum of all elements except of the i element

%% for example in the second itreation (i=2) I want the sum of all elements except the 3 (second element) a=[1 3 2 1 4 2 1 5 1 ...

meer dan 2 jaar ago | 1 answer | 0

Question

Wrong solution using solve with a logarithmic

Hello, I wanted to solve an equation containing a log function. The solution given by Matlab is not correct, until I multiply t...

meer dan 2 jaar ago | 1 answer | 0

Question

I have 4 bits combinations, and I want to change the size of the matrix HT depending on these combinations, the description below

First ___ I creat the combinations like the follow: n=4; %number of bits r = [ 0:2^n-1 ]; A = []; for i = 1 : n A = [A;r]...

meer dan 2 jaar ago | 1 answer | 0

Question

from C_T_Sep_1 to C_T_Sep_10 they are vectors the same thing for C_A_Sep_1... C_A_Sep_10, I want to create matrix C_T_Sep and C_A_Sep and put the vector inside it, using loop

C_T_Sep_1 = importdata('C_T_Sep_1.txt') ; C_A_Sep_1 = importdata('C_A_Sep_1.txt') ; C_T_Sep_2 = importdata('C_T_Sep_2.txt') ;...

meer dan 2 jaar ago | 1 answer | 0

Question

How to save the values of (x,C) in file 1 and (x,y) in file 2 to plot them in file 3.. the description in the code below

% file 1 clc; clear; x=[1 3 2 5 8] for i=1:10 C=i*(x); end %%%%%%%%%%%%%%%%%%%%%%%%%%% % file 2 clc; clear; y=[...

meer dan 2 jaar ago | 1 answer | 0

Question

how I can insert these specific colours into my figures

newcolors = [0 0.4470 0.7410 0.8500 0.3250 0.0980 0.9290 0.6940 0.1250 0.25 0.80 0.54 ...

meer dan 2 jaar ago | 1 answer | 0