답변 있음
plotting: making an array out of values made in a for loop?
R=.5; %m L=1.25; %m H=.25; %m N=100; phi=zeros(1,N); theta=linspace(0, 4*pi, N); for i=1:N fphi=@(phi) R*sin(theta(i)) + ...

거의 7년 전 | 0

답변 있음
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)) + ...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

답변 있음
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 ...

거의 7년 전 | 0

답변 있음
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,...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
Counting values between values in array
A=123; B=129; result=sum(find(var==A | var==B))

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

| 수락됨

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

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 1

| 수락됨

답변 있음
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...

거의 7년 전 | 1

| 수락됨

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

거의 7년 전 | 0

답변 있음
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 ...

거의 7년 전 | 1

답변 있음
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...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 2

| 수락됨

답변 있음
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*...

거의 7년 전 | 2

답변 있음
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...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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...

거의 7년 전 | 0

| 수락됨

답변 있음
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

거의 7년 전 | 1

| 수락됨

답변 있음
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...

거의 7년 전 | 2

| 수락됨

답변 있음
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...

거의 7년 전 | 0

답변 있음
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 ...

거의 7년 전 | 0

답변 있음
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...

거의 7년 전 | 0

답변 있음
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

거의 7년 전 | 0

더 보기