已回答
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 % ...

11 years 前 | 0

已回答
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; ...

11 years 前 | 0

| 已接受

已回答
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;

11 years 前 | 0

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

11 years 前 | 0

| 已接受

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

11 years 前 | 1

| 已接受

已回答
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,...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 1

已回答
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(:)'

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 1

| 已接受

已回答
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...

11 years 前 | 0

已回答
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: ...

11 years 前 | 0

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

11 years 前 | 1

已回答
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...

11 years 前 | 0

| 已接受

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

11 years 前 | 0

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

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 1

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

11 years 前 | 0

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

11 years 前 | 8

| 已接受

已回答
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')

11 years 前 | 0

| 已接受

已回答
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 ...

11 years 前 | 0

| 已接受

已回答
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')

11 years 前 | 0

已回答
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; ...

11 years 前 | 1

| 已接受

已回答
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...

11 years 前 | 1

已回答
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

11 years 前 | 0

已回答
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

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 1

| 已接受

已回答
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;

11 years 前 | 2

| 已接受

已回答
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 ...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 0

| 已接受

加载更多