Answered
How to extract and/or average diagonal pixels in an image?
1.- Acquiring image A=imread('fringes1.jpg') figure(1);imshow(A) <</matlabcentral/answers/uploaded_files/48478/fringe...

10 years ago | 3

Answered
reading from excel by page
Kris the page of a Microsoft Excel workbook can be directly addressed in the command *xlsread*: filename='wrkbk1.xlsx' ...

10 years ago | 1

Answered
Distance between two objects.
% 1.- acquiring image A=imread('2D_distance_between_2_objects.jpg') % since it's already a quite sharp image, just u...

10 years ago | 5

| accepted

Answered
how can i solve simultaneous equation using genetic algorithm ?
Hi Ahamed cos(A)=.5*(exp(j*A)+exp(-j*A)) sin(B)=-j*.5*(exp(j*B)-exp(-j*B)) x = 5*(exp(j*t1)+exp(-j*t1)) + 2.5*(ex...

10 years ago | 0

Answered
How can I subtract this matrix in this function?
Tyler 1.- in order to have your V_KT function working, to prevent the error A(I)=B you mention and others i had to change...

10 years ago | 1

| accepted

Answered
ビデオおよびWebセミナー内のスクリプトのダウンロード方法
Masayuki Nishida The Lecturers and authors usually include a link so that you can contact them. For instance, 1.- you ...

10 years ago | 2

Answered
Compare two strings, in different length, in two data sets in MATLAB, using if loop.
Hi Mr Chen 1.- use cells If you work with strings only, you are going to be limited to constant length. If instead you work...

10 years ago | 1

Answered
problem with my code please !!
subplot has 3 indices. Changing your subplot indices as follows then it doesn't return error: n=1:20 h=3*(-1/4).^n ;s...

10 years ago | 0

Answered
how can the graph between x and y be extrapolated?
Parul try p=polyfit(x,y,3) define the extended range x2, for instance x2=linspace(100,600,10) approximate va...

10 years ago | 0

Answered
For loop help needed
Correct if wrong but your start equations really are: rho = 1.2*exp(h^1.15) D = .5*rho Uy=D*cos(theta) Ux=D*sin(th...

10 years ago | 0

Answered
RMS of matrices in a cell or array
Mike have you noticed that rms has an option to aim on the dimension you want to sweep along? P=randi(10,3,3,3) P(:,:...

10 years ago | 1

Answered
How to convert stance image from index to grayscale
Hi Denni You want to go from RGB to Y. Y is called luminance. There is a good presentation of TV colour calibration charts...

10 years ago | 0

Answered
continuously re-plot using plot3 with same axis
In C Moler experiments <http://uk.mathworks.com/moler/?s_tid=srchtitle> chap5 there is a basic example how to animate obj...

10 years ago | 0

Answered
how to find elements that meet multiple conditions in cell array
Hi Jim in order to answer the kind of questions you are facing you need a structure you can easily select elements according ...

10 years ago | 1

| accepted

Answered
File Exchangeにアップロードされたファイルは商用利用可能でしょうか?
由紀前田サン 1.- MATLAB CENTRALの答えは無料です 2.-どのような場合には、最善のアプローチは、最初にそれを取る、といくつかのいずれかがお金を要求するならば、見ることはないでしょうか? よろしく John jgb...

10 years ago | 0

| accepted

Answered
How do I make the matrix match in size
Hi answer 1: x=linspace(-4,4,61) y=linspace(-3,3,81) [X,Y]=meshgrid(x,y) Z=X.^2-2*X.*Y+3*Y+2 surf(Z) <</m...

10 years ago | 1

Answered
Maxima and Minima using fminsearch()?
with x step 1 you get min(min(z)) ans = -0.433333333333333 max(max(z)) ans = 0.309523809523810 zmax_...

10 years ago | 1

Answered
Segment color dicom image
Bonjour Sbei 1.- Separate the components A=imread('image_segmentation.jpg') Ar=A(:,:,1);Ag=A(:,:,2);Ab=A(:,:,3) 2....

10 years ago | 1

| accepted

Answered
Pulling a data point from a bode graph within a state-space simulation?
Jon I have the impression that instead of sys=ss(A,B,C,D) perhaps you should use [b,a]=ss2tf(A,B,C,D) where 'b' is ...

10 years ago | 0

Answered
Plotting the spectrum for an audio signal in matlab M
Hi Frances you already have a dB scale on the y axis. the command ylabel is only writing a label on the y axis regarding t...

10 years ago | 0

Answered
How to insert a new row in the middle of matrix moving the old rows down and not deleting them?
Hi Ajay a compact way to embed a row vector is: a=[ 1 2 3 0; 4 5 6 0; 7 8 9 0] [sz1 sz2]=size(a) v=[1 1 1 1] ch...

10 years ago | 3

Answered
Problem with Solve command
Hi Dani I try this syms x y z eq3=7*x-8*y-351 eq1=x+2*y+3*z-366 eq2=4*x+5*y+6*z-804 [x0,y0,z0]=solve(eq1,eq2...

10 years ago | 0

Answered
Copy file to a new folder
Hi Jason one way to copy files is with command dos path1='put here full destination path' % for instance D:\Documents\...

10 years ago | 0

Answered
Build 2-D array with same 1-D array
hi Renuyan yes, MATLAB has repmat A=[1 2 3 4 5 4 6] you set the amount of repetitions reps=5 to replicate ver...

10 years ago | 0

| accepted

Answered
Appending letters to number
your syntax of strcat is not clear: where you write Field = strcat('',[centerField,setField],'') you may want to wri...

10 years ago | 0

Answered
how to plot the 3d graph
Hi Akshaya the straight way to visualize the function boundaries is, for Esup dgh= 0.09954; Delta=-0.68429; sx...

10 years ago | 0

Answered
Concentrated Solar Power Generation Systems
El documento adjunto detalla el modelo que debes estar buscando. fuente: <http://www.energy.ca.gov/2015publications/CEC-500...

10 years ago | 1

Answered
How to scale and shift discrete time functions simultaneously?
Hi Usman If you find these answer lines of any help solving your question, please click on the thumbs-up vote link: ...

10 years ago | 8

| accepted

Answered
I need to programe a thinning function without using toolbox. I can get thinning image with toolbox functions, the problem is that I can't use it.
There is a MATLAB CENTRAL solution already available that apparently does the 'image thinning' you are after. Have a look: ...

10 years ago | 0

Answered
I WANT TO FIND CORRELATION OF X[N] WITH X[N],X[N] WITH Y[N] AND Y[N] WITH Y[N].
Harshad 1.- you are not taking many points/cycle in x(n). In other words, the more points you can get in a single cycl...

10 years ago | 2

| accepted

Load more