질문


why is my difference image black?...
the program works but my difference image is just black...did i do something wrong? or is there a way to make it visible? %% ...

대략 3년 전 | 답변 수: 2 | 0

2

답변

질문


Why do I keep getting a black image when i dont use []?
What is the difference between using [] with imshow and dividing an image by a scalar before using imshow fxn? Is my code wrong...

대략 3년 전 | 답변 수: 2 | 0

2

답변

질문


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

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


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])

대략 3년 전 | 답변 수: 2 | 0

2

답변

질문


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'); ...

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 3년 전 | 답변 수: 2 | 0

2

답변

질문


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

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 3년 전 | 답변 수: 2 | 0

2

답변

질문


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

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 3년 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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

3년 초과 전 | 답변 수: 0 | 0

0

답변

질문


I want the Mathematics equations for the Genetic Algorithm.
the Mathematics equations for the Genetic Algorithm function

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

1

답변

질문


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

3년 초과 전 | 답변 수: 2 | 3

2

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

3년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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') ;...

3년 초과 전 | 답변 수: 1 | 0

1

답변

더 보기