Community Profile # Mahi Nazir

Last seen: ungefär ett år ago Active since 2013

PhD student

#### Statistics

• #### Content Feed

View by

Question

Change colour of points in plot3 with increasing z value
Hi I have a set of x values, set of y values and for each x,y I have a z value. I have to plot them as shown in the attached fi...

ungefär 7 år ago | 2 answers | 0

### 2

Question

Reading formatted data from a file
I have a file containing data like: Blocks=N The position is -8,5, velocity is 1 and direction is 0 deg 1.7 2 3 4 ...

nästan 8 år ago | 0 answers | 0

### 0

Question

Surface under the curve
I have 3 vectors x,y,z such that function plot3 plots the attached graph. I need to fit a surface such that I get somewhat secon...

ungefär 8 år ago | 2 answers | 0

### 2

Question

Alternative for fopen and dlmwrite
I have a large number of small .out files to be written. There are several for loops going on. A snippet: outputfile=sprint...

ungefär 8 år ago | 0 answers | 0

### 0

Question

Matlab running slow 2013a and 2012b
Hi I have got 2 versions of matlab in my system. Both have been working fine until few days back when both started running very...

ungefär 8 år ago | 0 answers | 0

### 0

Question

Reading only numeric data in a text file
I have a formatted text file (attached). I have to read it, ignoring some bits like the headings. After reading I should be able...

mer än 8 år ago | 1 answer | 0

### 1

Question

Dimension mismatch error in matlab
Hi can someone please explain me why the first one is correct and the second one generates error. I am sure it must be something...

mer än 8 år ago | 1 answer | 0

### 1

Question

How to crop some matrix row
How do I crop a 105x41 matrix to get a 41x41 matrix. I want to crop the top and bottom rows to get the central 41x41 matrix. Som...

mer än 8 år ago | 1 answer | 0

### 1

Question

How to get the new matrix after rotation
If I am rotating a matrix by using: [C,h] = contour(x,y,Conv_Norm); rotate(get(h,'children'),[0 0 1],angle) Is there...

mer än 8 år ago | 1 answer | 0

### 1

Question

Rotation of a contour plot
I have a contour plot (Image1). I need to rotate it through a certain angle. If I save it as an image and then rotate it using t...

mer än 8 år ago | 1 answer | 0

### 1

Question

How to extend an image using convolution
<</matlabcentral/answers/uploaded_files/12830/conv_example.jpg>> Hi I have this plot which I saved as an image. I nee...

nästan 9 år ago | 1 answer | 0

### 1

Question

How to find Z from the surface plot for known X and Y using cftool
Hi I have a matrix X, Y and Z. I use cftool to fit a surface to this data, using linear interpolant. Is there a way through w...

ungefär 9 år ago | 0 answers | 0

### 0

Question

Interpolation between matrices (image attached)
<</matlabcentral/answers/uploaded_files/8054/2014-02-12%2011.29.53.jpg>> I need to do 4 way interpolation where I have the co...

ungefär 9 år ago | 1 answer | 0

### 1

Question

finding unique rows with largest value in 3rd column
Suppose I have a matrix A= 1 2 3 1 3 8 2 1 3 2 1 5 2 2 8 1 2 9 4 3 2 I want to find a ...

mer än 9 år ago | 2 answers | 0

### 2

extracting a row from a matrix
I think I solved it, if my matrix is A [C,I]=max(A(:,3)) %it will find the max in the last column and its index row=A(I,...

mer än 9 år ago | 0

Question

extracting a row from a matrix
I want to extract a row from a matrix for which the last column element is largest. for example if my matrix is 1 2 3 1 ...

mer än 9 år ago | 2 answers | 0

### 2

Question

Clip out of range data from a plot
I am plotting a 3D graph (using plot3) I am defining my axis([-8,8,2,50,0,20]) With centre as (0,2) I am drawing some semi-cir...

mer än 9 år ago | 1 answer | 0

### 1

Question

Smooth curve between points in 3D
I have a 3D plot (plot3). Along the z axis I have discrete points, Each time the function is called, a point is plotted along t...

mer än 9 år ago | 1 answer | 0

### 1

Question

comparing matrix elements and performing operation if equal
If I have a matrix A= 18 18 1 17 20 2 18 18 1 17 25 2 19 16 3 18 1...

mer än 9 år ago | 1 answer | 0

### 1

Question

Saving the variables in a function call and using them next time the same function is called
I call a function few times within a loop. Each time the function is called it calculates the value of dx,dy and AF. The next ti...

mer än 9 år ago | 2 answers | 0

### 2

Question

Extrapolating a line between two points
I am plotting a line using bresenham algorithm between two points. How can I extend (extrapolate) that line? e.g I am plotting...

mer än 9 år ago | 0 answers | 0

### 0

Question

selecting elements in the matrix
Suppose I have a matrix A=[1 5 7; 2 4 3; 7 8 9] I want the indices and the values of all the elements >6 So I want the answer ...

mer än 9 år ago | 1 answer | 0

### 1

Question

Comparing matrices with different dimensions
I have a matrix [row, col, vector] with a large number of entries for row, col and vector. I have another matrix [x, y] with...

mer än 9 år ago | 2 answers | 0

### 2

Question

How to get contour plot and line plot intersection values/ coordinates
I am plotting a 3D graph and a contour of the same. Then I plot few lines on the contour plot. I want to know the value of the c...

mer än 9 år ago | 1 answer | 0