Top 5% contributor
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...
Asked 8 months ago
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
Answered 2 years ago
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
Asked 2 years ago
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...
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...
I have a formatted text file (attached). I have to read it, ignoring some bits like the headings. After reading I should be able...
Asked 1 year ago
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...
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...
I need to do 4 way interpolation where I have the co...
Suppose I have a matrix
I want to find a ...
If I have a matrix
18 18 1
17 20 2
18 18 1
17 25 2
19 16 3
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 ...
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...
If I am rotating a matrix by using:
[C,h] = contour(x,y,Conv_Norm);
rotate(get(h,'children'),[0 0 1],angle)
Hi I have this plot which I saved as an image. I nee...
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...
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...
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...
I have a file containing data like:
The position is -8,5, velocity is 1 and direction is 0 deg
1.7 2 3 4
Asked 6 months ago
I have a large number of small .out files to be written. There are several for loops going on.
Asked 9 months ago
I have got 2 versions of matlab in my system. Both have been working fine until few days back when both started running very...
Asked 10 months ago
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...
I am plotting a line using bresenham algorithm between two points. How can I extend (extrapolate) that line?
e.g I am plotting...
I have a contour plot and a line which intersects this contour at some positions. How do I get the coordinates of these intersec...