Question

make a matrix with elements that are under affected by the element number

Hi everyone I want to make a matrix that each one of its element value is related to the element number. My matrix is given be...

5 mesi ago | 0 answers | 0

Question

How to use trap(x,y) integral over a finite distance?

Hi everyone, I want to integrate over a finite distance for a set of numerical data. For better explanation, I have vectors of ...

7 mesi ago | 1 answer | 0

Question

How to plot a simple curve fitting in Matlab?

Hi I'm trying to use Matlab curve fittings. I used X=[1,2,3] and Y=[3,4,5] as known data and the codes introduced below: ...

oltre 3 anni ago | 1 answer | 0

Question

Can Matlab help in design experiments?

I have four different type of inputs and three type of outputs, I want to design my experiments with these values in Matlab and ...

oltre 4 anni ago | 0 answers | 0

Question

Why doesn't a simple progream work?

I wrote a simple program, but it doesn't work. I'm completely confused of how such a simple program doesn't work. x=0:0.1:4...

oltre 5 anni ago | 1 answer | 0

Question

Is it possible to change 'file.m' to 'file.exe' ?

Is it possible to change MATLAB .m files to .exe files in order to run the program on system which MATLAB is not installed on th...

oltre 5 anni ago | 1 answer | 0

Question

How to find minimum and maximum values?

I have to matrices A and B which both of them are p*q matrices. I want to compare each member of A and B like A(i,j) and B(i,j) ...

oltre 5 anni ago | 2 answers | 0

Question

How to change Nan value with zero and return them again?

I have a matrix like A which some of its members are NAN. I want to do some mathematical works on it, but I can not do it becaus...

oltre 5 anni ago | 1 answer | 0

Question

How can I use colors in my surf, truely?

I've used surf order with a simple method surf(X,Y,Z). X and Y are p*1 matrices and Z is a p*p matrix. I want to use colors to s...

oltre 5 anni ago | 1 answer | 0

Question

How can I draw surf (semi-surf) for non square X-Y base plane?

<</matlabcentral/answers/uploaded_files/7238/nodes.png>> .. I have assembled some nodes in X-Y plane as shown below.So I h...

oltre 5 anni ago | 1 answer | 0

Question

How can I change pairs?

I have pairs of A{i}=[ai bi]. How can I change them to pairs B{i}=[bi ai]. I like to use Matlab special features in matrices.

oltre 5 anni ago | 2 answers | 0

Question

Why doesn't this simple search program work?

I wrote a program to give me some nodes as shown in the figure <</matlabcentral/answers/uploaded_files/7216/nodes.png>> F...

oltre 5 anni ago | 1 answer | 0

Question

Why I can not do this surf?

I have made three matrices X,Y and Z. All of them are *144*1* matrices. I use surf(X,Y,Z), but it doesn't work! *[EDIT]* Ay...

oltre 5 anni ago | 2 answers | 0

Question

How can I clear columns and rows of a matrix?

I have matrix like A which is in a square form p*p and a line matrix B in a form of q*1 (q<p). I want to clear rows and colum...

oltre 5 anni ago | 1 answer | 0

Question

How can I built a new matrix in a new method?

I have a matrix like Assem{1} which is equal to: Assem{1}=[0 6 2 0 0 7 0 0 0 12 3 0 1] My another matrix is: C=[W1 W2 W...

oltre 5 anni ago | 1 answer | 0

Question

How can I write a program to investigate whether a number belongs to matrix?

I have a Matrix named A and a number like B=11. I want to write a program which gives C=1 when B belongs to A and C=0 when B doe...

oltre 5 anni ago | 1 answer | 0

Question

How to clear column and row

I want to clear i column and j row from my matrix which I call it A. How can I do it by MATLAB features?

circa 6 anni ago | 2 answers | 0

Question

How can I solve this problem?

I have assembled Mass and Stiffness matrices with a kind of free element method, but the determinants of my Mass and Stiffness m...

circa 6 anni ago | 0 answers | 0

Question

How can I have a better plot?

I'm using codes given below in my program, but nodes which are plotted each loop are too small (maybe just one pixel). How can I...

circa 6 anni ago | 1 answer | 0

Question

How can I use colorful * in my plot?

I'm using codes shown below and I want to use colorful * instead of colorful node. How can I change these codes to give me * wit...

circa 6 anni ago | 1 answer | 0

Question

How to find the nine biggest numbers?

I have a n*n matrix and I want to find nine biggest numbers in it. How can I do it in MATLAB?

circa 6 anni ago | 2 answers | 0

Question

How to change color each loop?

I have a program which should be repeated 5 times by a loop. I used plot() order in my program and I'm eager to change graph col...

circa 6 anni ago | 2 answers | 0

Answered

How can I plot interpolation line besides nodes?

>> t=spline(X,Y,h); >> plot(X,Y,'*',h,t)

How can I plot interpolation line besides nodes?

>> t=spline(X,Y,h); >> plot(X,Y,'*',h,t)

circa 6 anni ago | 0

| accepted

Question

How can I plot interpolation line besides nodes?

I have a plot() order in my program and I want to have interpolation line on the graph besides specific nodes which are evaluate...

circa 6 anni ago | 1 answer | 0

Question

How can I find the maximum value in a matrix?

How can I find the maximum value in a matrix and find its column and row number of this value?

circa 6 anni ago | 2 answers | 0

Question

different windows for different plots

I wrote a large program full of plot() and plot3() order,but I want to have my graphs in different windows. How can order each p...

circa 6 anni ago | 1 answer | 0

Question

How can I divert my program on a new program and return it?

I wrote a program which I named it "file1.m".After calculating some arrays and matrices, my program should go on the other progr...

circa 6 anni ago | 1 answer | 0

Question

small matrix in big matrix

I want to put a small matrix (p*q) called B into a bigger matrix (m*n) called A. How can I do it. Matrix B should be put on the ...

circa 6 anni ago | 1 answer | 0

Question

Put a small matrix in a bigger one.

I want to put a small matrix (p*q) called B into a bigger matrix (m*n) called A. How can I do it. Matrix B should be put on the ...

circa 6 anni ago | 3 answers | 0

Question

How to change matrix?

I have a 6*3 matrix and I want to change to 6*2 matrix, how can I do it? example: N1=[1 2 3;4 5 6] then N1=[1 2;4 ...

circa 6 anni ago | 1 answer | 0