Answered
finding an array of roots?
Is this? R=.5; %m L=1.25; %m H=.25; %m N=100 phi=0; theta=linspace(0, 4*pi, N); for i=1:N fphi=@(phi) R*sin(theta(i)) + ...

14 days ago | 0

Answered
decreasing point on curve
One way: Find the y, when y(i)<y(i-1) (First Case) iterate i from 2 to end Second way: data=y(i+1)-y(i); %Create the data, t...

16 days ago | 0

Answered
Why the I is always a constant
Befor answering the question, It seems you are messing with code and logic, if yes, figure out. Now the answer of the question ...

16 days ago | 0

Answered
Index in position 2 is invalid. Array indices must be positive integers or logical values.
for ky=-6:0.1:6 for kx=-6:0.1:6 f(10*ky+61,10*kx+61)=exp(i*10^(-16)*(2.16*(n+m)*kx+1.245*(n-m)*ky)) I(10*ky+61,...

16 days ago | 0

Answered
Function that converts Celsius to Fahrenheit and prints it to a file
Error in CelToFar (line 7) Far=((9*Cel/5)+32); Here it is- I assumed you pass the single aruments (scalar) at a time, if large...

16 days ago | 0

| accepted

Answered
Counting values between values in array
A=123; B=129; result=sum(find(var==A | var==B))

16 days ago | 0

Answered
Matrix dimensions error for adding noise vectors
The issue is here, you are trying to add different sizes matrices in the following line- new_sound_array=y+x1+x1; Where >> w...

17 days ago | 0

| accepted

Answered
how to do convolution Of this x1 and x10 function ?
result=conv(x1,x10); plot(result); Please do all other axes labeling and title

17 days ago | 0

| accepted

Answered
Add columns into one column with each run
"Add columns into one column with each run" F=rand(10,1); [r c]=size(F); num_of_colm=10; % mention how many column you want t...

17 days ago | 0

Answered
Vector dimensions not right
As already @Walter sir specified, you did not provide us the "t" data, here I have assumed the t data as same as t2 Please assi...

17 days ago | 0

| accepted

Answered
How to express this function?
function y=test1() T=3; W=pi; t=0.01:10 y=10*exp((-t./T).*sin(W.*t)) end Or Direct T=3; W=pi; t=0.01:10; y=10*exp...

17 days ago | 0

| accepted

Answered
can someone tell what is happening in here are we assigning values to an array or what?
Is there any issue? I think no? nx=nx+1; % nx updated with 1 and replace the present nx value Following is the assigning out...

17 days ago | 0

Answered
plotting a moving object
Is this? x0=0;y0=0; x1=15;y1=8; v=1; px=0; py=0; t=0.1; dist=0; for i=1:1:x1 dist(i)=sqrt((x0-(t.*v)).^2 +(y0-(t.*v...

18 days ago | 0

Answered
I need to generate an array where the elements in the array are the sum of the indices... I am quite lost with the nested for loop aspect... please assist if possible.
% If m = 12, and n = 13 then the final solution should be a 12 x 13 matrix with the min value being 2 and max value being 25 fu...

18 days ago | 1

| accepted

Answered
The if loop is continuing even after the condition is false.
It's seems perfectly working: >> RS RS = Columns 1 through 12 0.2217 0.2226 0.2235 0.2244 0.2252 0.2254...

18 days ago | 1

Answered
how to extract SIFT features from rgb image in matlab
Have you checked here ? Also you can look on this custom function also.

18 days ago | 0

Answered
Change column in array
Arr=[5 5 5 5 ; 5 5 5 5; 5 5 5 5 ; 5 5 5 5; 5 5 5 5]; % First column number change the 10 Arr(:,1)=10 %Do the same for others ...

18 days ago | 0

Answered
I'm having trouble getting my first Matlab code to work? Can anyone tell me what's wrong?
Save the function as quadroot.m in different Matlab file. Call the function by passing inputs arguments from another main Matla...

18 days ago | 0

Answered
How to change the color of a plot with two y-axes on the same graph in Matlab
x = 0:0.01:20; y1 = sin(x); y2 = x; figure % new figure plotyy(x,y1,x,y2) [hAx,hLine1,hLine2] = plotyy(x,y1,x,y2); set(hAx...

19 days ago | 1

| accepted

Answered
How to plot and subplot butterfly?
%Problem 1 n = 5000 ; t = linspace(0,20*pi,n); x = sin(t).*(exp(cos(t))-2*cos(4*t)+sin(t/12).^5) y = cos(t).*(exp(cos(t))-2*...

20 days ago | 0

Answered
Generate an intensity image I(x,y) and display it. by using the equation I = 0.299R 0.587G 0.114B (the NTSC standard for luminance)
Is this? R=randi(50,[500 500]); G=randi(50,[500 500]); B=randi(50,[500 500]); R_comp=0.299*R; G_comp=0.587*G; B_comp=0.114...

20 days ago | 0

Answered
How to plot different probability distribution for an image . Kindly help me.
gray_image=rgb2gray(imread('image_test.jpg')); [r c]=size(gray_image); pix_prob_normal=imhist(gray_image)./(r*c); plot(0:255...

20 days ago | 0

| accepted

Answered
Overlay binary image on RGB image
Is this? RGB_image=imread('image_test.jpg'); subplot(311);imshow(RGB_image); bw_image=im2bw(rgb2gray(RGB_image)); subplot(31...

20 days ago | 0

| accepted

Answered
Creating a loop in order to read .txt files
list=dir('*.txt'); for j=1:length(list) file_text=textread(list(j).name); %.....code end

20 days ago | 0

| accepted

Answered
need to create a vector through input in the script
function result=test( ) n=input('Enter the vector length: '); result=zeros(1,n); for i=1:n result(i)=input('Enter the vector...

20 days ago | 1

| accepted

Answered
Random 1 image from folder and imread it
Try? %Save the folder of images in the current directory path_directory='Test3'; % 'Folder name' original_files=dir([path_dir...

20 days ago | 0

Answered
How to write a for loop that converts one file type to another?
See my answer here ralated to images call..do the same in your case Or More simpler @Stephan's Answer here Try, any issue ...

21 days ago | 0

Answered
Kernel RBF in image segmentation
Actually what the means by a and b. This custom function is based on following paper, kindly check all details http://citesee...

21 days ago | 0

Answered
could anyone help me how to verify the standard deviation of matrix
Matlab: (Uses divide by N-1) >> A=[1 4 2]; >> std(A) ans = 1.5275

21 days ago | 0

Answered
Remove rows of a table based on values in an array
disp('Original table'); var1=[1;1;1;1;4;1]; var2=[2;2;2;2;5;2]; var3=[0;3;3;8;8;9]; table_data=table(var1,var2,var3) n=hist...

21 days ago | 1

| accepted

Load more