Beantwortet
Histogram thresholding to get the threshold point
Hi. % code x=imread('tumor.jpg'); % im=rgb2gray(x); im=x(:,:,1); [q r]=size(im); s=r/2; % for i=1:q % ...

mehr als 12 Jahre vor | 0

Beantwortet
How to remove Index exceeds matrix dimensions error ?
Hi. Maybe your s isn't 102400 by 8 matrix. With s=rand(102400,8) didn't give any error: degree = 180; divisor_factor=32; ...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
How to normalize given matrix in the range of [-11] ?
Hi. A=randi(100,[10 10 10]); % Between [0 1] A=(A-min(A(:)))./(max(A(:))-min(A(:))); A=2.*A -1;

mehr als 12 Jahre vor | 0

Beantwortet
who to use string as input?
Hi. Try this: function anyFunction(anyString) length(anyString{1}) end

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Use abslolute colormap scale.
Hi. [x,y]=meshgrid(-7:.02:7); f=x.^2+y.^2; imshow(f,[23 47]) colormap(jet)

mehr als 12 Jahre vor | 1

| akzeptiert

Beantwortet
Logic issues for creating a random walk
Hi. plot([x1 x2],[y1,y2]) For all lines: xCor = rand(1,10) yCor = rand(1,10) Cor = [xCor; yCor] subplot(1,...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Variance and mean isn't calculated properly
Hi. Your noise is very large and the output image must be between 0 and 1, so the values greater than 1 became 1 and values les...

mehr als 12 Jahre vor | 1

Beantwortet
making a new matrix with the other matrix elements.
Hi. A=[8 11 9 5 10 15]; B=[3*A-2; 3*A-1; 3*A]; B=B(:)'

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
How can I find PSNR values of the denoised image of the SRAD filter.
Hi. Your J is between [0 1]: MSE_W=mean(mean(((double(uint8(I)))-(double(uint8(J.*255)))).^2)); PSNR_W=10*log10(255^2/MS...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
How to impose a condition creating a matrix.
Hi. With 0:5:100 got out of memory error: n=0:10:100; A=n'; for i=1:9 x=repmat(n,[size(A,1) 1]); A=repm...

mehr als 12 Jahre vor | 1

| akzeptiert

Beantwortet
i am using a for loop to access each element in a column of an xls file and display the data with the help of GUI.my code is:
Hi. Range should be a string: a=xlsread('abc.xls',i,['A' 'num2str(i)']); It's better to read the whole file then use it...

mehr als 12 Jahre vor | 0

Beantwortet
Need help writing a for loop
Hi. You don't need for loop to doing this: T = 1; Vm = 1; t = linspace(0, T, 1001) v = (Vm/T)*t with for: ...

mehr als 12 Jahre vor | 0

Beantwortet
How to convert non-linear equations to matrix form?
Hi. Maybe sym2poly: syms x C=sym2poly(x^3 - 2*x - 5) poly2sym(C)

mehr als 12 Jahre vor | 1

Beantwortet
how loop output store
Hi. What is the size of your price value in each loop: for i=1:n % if it is a number output(i,1)=price; % if i...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Code to automatically generate filename from reading cell in an excel file
filename = ['WARNING TEST FILE_C2_2013-02-25'] filename(filename=='-')='_'

mehr als 12 Jahre vor | 0

Beantwortet
picking rows which has negative element.
Hi a=randn([5 5])+1 Nrows=sum(a<0,2); a(Nrows>0,:)

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
how to create noise manually to a color image without imnoise function explain with example?
Hi. For gaussian noise with standard deviation of S: clear S = 20; I = imread('peppers.png'); J = double(I) + S.*r...

mehr als 12 Jahre vor | 1

Beantwortet
Loop to generate n random series (filling a matrix?)
Maybe this: for i=1:1000 x(:,i)=simBM(n,delta,mu,sigma); end

mehr als 12 Jahre vor | 0

Beantwortet
how can i check that my image is rgb
Hi if size(a,3)==3

mehr als 12 Jahre vor | 8

| akzeptiert

Beantwortet
how to make a single plot with different colors?
Hi x=1:10; y=1:10; plot(x(1:5),y(1:5),'r') hold on plot(x(5:10),y(5:10),'g')

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Problem with implementing RLC function...
Hi img =[1 1 0 0 0 1 0 1 1 1 0 0 1 1 0 1 0 1 ...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Issue with writing multiple variable to excel sheet
Hi a=[1 1 1]; b={'name'}; xlswrite('New.xlsx',a,1,'A1') xlswrite('New.xlsx',b,1,'D1')

mehr als 12 Jahre vor | 0

Beantwortet
How to get tau for every c and plot a c vs tau graph
Hi clc clear close all r=3.3; K=898; alpha=0.045; d=1.06; h=0.0437; theta=0.215; ...

mehr als 12 Jahre vor | 1

| akzeptiert

Beantwortet
while loop question number 2
Hi A=[ 79, 970108, 1, 5, 0.088, 6.383 79, 970108, 1, 25, 0.075, 4.380 79, 970108, 1, 45, 0.094, 0.7...

mehr als 12 Jahre vor | 1

Beantwortet
To find aspect ratio of an image using matlab
Hi. I think n/m: E = imread('peppers.png'); m=size(E,1); n=size(E,2); AR=n/m

mehr als 12 Jahre vor | 0

Beantwortet
How do I reduce an {nxm(3x1)} cell to a an {nx{3xm}} cell?
Hi New_Cell={}; for i=1:n New_Cell{i,1}=cell2mat(C(i,:)); end

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
How to write out multiple mat files, for some kind of regression suite testing?
Hi Diff_Freq_Array = [5, 8, 10, 12, 14]; for i = 1: length(Diff_Freq_Array) Freq = ((Diff_Freq_Array...

mehr als 12 Jahre vor | 1

| akzeptiert

Beantwortet
How do I create this vector: [10,8,10,8,10, ...]?
Hi a=zeros(1,100); a(1:2:99)=10; a(2:2:100)=8;

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
Fuzzy parameters in Fuzzy Interface Structure
Yes, and use centroid deffuzzification method to compute output. You can change the 'and', 'OR' ,... methods in FIS Properties ...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
How can I find the n smallest numbers in a two-dimensional array of m numbers?
Hi. n=4; a=[236 245 145 244 112; 225 232 266 111 212]; [r c]=size(a); a = a'; vector=a(:); [B,IX] = sort(vec...

mehr als 12 Jahre vor | 0

| akzeptiert

Mehr laden