Answered
contour plot for 3d data with x, y, z and c in matlab
Read abouit contour3, slice.

7 years ago | 0

Answered
How to use a shapefile to extract regions outside the shapefile?
Read the shape file using shaperead. This has single/ multiple regions. Pick one closed region fromt he shape file Take the ...

7 years ago | 0

Answered
Choose n points randomly from a circle, how to calculate the probability that all the points are in one semicircle?
% Generate circle r = 1. ; % radius th = linspace(0,2*pi) ; x = r*cos(th) ; y = r*sin(th) ; % Geenrate random points...

7 years ago | 0

Answered
Plot 4000x500 2D matrix
Read about surf, pcolor, imshow, imagesc.

7 years ago | 0

Answered
Generate (X,Y) grid coordinates from within contour boundary
Use boundary to get the boundary of your required region. Use inpolygon with the generated grid and boundary points to get the...

7 years ago | 0

| accepted

Answered
I want to read image name to be an string
imgNames = dir('*.jpg') ; N = length(imgNames) ; for i = 1:N img = imgNames(i).name end

7 years ago | 0

| accepted

Answered
How to draw three graphs together to make a composite figure
C = [0 0 ; 1 0 ; 1 1 ; 0 1 ; 0 0 ] ; A = [0 1 ; 0 1.25 ; 1 1.25 ; 1 1 ; 0 1] ; B = [1 0 ; 1 1 ; 1.25 1 ; 1.25 0 ; 1 0] ; ...

7 years ago | 1

| accepted

Answered
Converting output from 'find' into a logical
Read about ind2vec. By the way you can straightaway logical, there is no need to use find.

7 years ago | 0

Answered
Find the surface area of an object using stereo vision.
After using delaunayTriangulation, you have vertices and nodal connectivity in hand. Then you can use this function to get the a...

7 years ago | 0

Answered
Is there a way to come up with all the combination between 0 and 1 that sum up to equal 1?
x = 0:1/100:1 ; id = nchoosek(1:length(x),4) ; thesum = sum(x(id),2) ; % find sum == 1 idx = thesum==1 ; iwant = x(id...

7 years ago | 1

Answered
Damping ratio computing from a MATLAB plot
For natural frequency you need to look into fft. Damping ratio can be calculated using logarithamic decrement approach. https:...

7 years ago | 0

| accepted

Answered
How to extract data from a cell array?
Already you have the cells in your desired way. You can access them using C{1} , C{2}, C{3} . You need to store them again...

7 years ago | 1

| accepted

Answered
How to plot data T(3023x1 table) and I(3023x1 table)?
plot(t.1,i.1)

7 years ago | 0

Answered
How do I restrict a decimal number to 2 significant decimal places?
Refer for the same discussion: https://in.mathworks.com/matlabcentral/answers/79928-reduce-precision-of-a-number

7 years ago | 0

| accepted

Answered
how to divide a region into elements where each element is 9 node element in matlab?
You can extend the following to your needs. https://in.mathworks.com/matlabcentral/fileexchange/33731-meshing-a-plate-using-...

7 years ago | 0

| accepted

Answered
interpolation with non-zero data only when using griddata
Get the boundary of your required region use inpolygon to get the points lying inside and outside the boundary Make the data f...

7 years ago | 0

| accepted

Answered
how to solve the nonlinear equatios?
Try this. syms v T p=30;d=1;lamda=0.8;c=10;r=35;h=0.05;chi=200;k=0.02;b=7;a =0.01; w = k*(1-exp(-a*chi)); M=k*a; equation1...

7 years ago | 0

Answered
length and width of room is increased by 20 percentage.what percentage has the area increased by
Let l, b be your old length and breadths. l1, b1 be new lengths and breadths l1 = 120/100*l ; b1 = 120/200*b ; A1 = l1*b1...

7 years ago | 0

Answered
help!!! with plot
a=200;b=5;cm=10;cr=3;v=600;k=6;u=0.1;s=0.2;e=2;cp=2;t=1; pr=1:10; r=-(pr*u*(b*cm - a + cp*e*k + b*cp*e*t))./(8*v + 2*b*pr.^2*u...

7 years ago | 0

Answered
I'm trying to do a Taylor series method for the equation y and compare it to the analytical solution. However, I keep getting a matrix dimension error. any help would be much appreciated.
Using diff reduces the dimension of the array by 1. You check the dimensions of y1, y2, y3, y4..they are of size 1X20, 1X19, 1x1...

7 years ago | 0

| accepted

Answered
How to suplot 3 images (2D data) horizontally?
YOu should follow this: https://in.mathworks.com/matlabcentral/answers/101346-how-do-i-use-multiple-colormaps-in-a-single-fi...

7 years ago | 0

Answered
plotting array more than one time
a = [0 1 0 0 1 1 1 0 1 0] ; t = 0:1:59 ; t = reshape(t,10,[])' ; a = repmat(a,size(t,1),1) ;

7 years ago | 0

Answered
Creating a video giving oscillatory motion to a point
A = 0.5 ; f = 1 ; t = linspace(0,10,100) ; x = A*sin(2*pi*f*t) ; h = plot(0.,x(1),'s','MarkerSize',10) ; for i = 1:...

7 years ago | 0

| accepted

Answered
How can I export x, y and z matrix to .xyz format file?
Let X, Y, Z be your m, n matrices. x = X(:) ; y = Y(:) ; z - Z(:) ; p = [x y z] ; fid = fopen('test.xyz', 'wt'); fpr...

7 years ago | 0

| accepted

Answered
How to plot?
YOu need to proceed like this: m = 300 ; n = 100 ; x = linspace(0,100,m) ; eta0 = 2 ; L = 100 ; W = 100 ; v = 0.14...

7 years ago | 0

| accepted

Answered
How to add NaN in cell before last one
a{1} = [1 2 3 4 5 10]; a{2} = [2 2 4 5 10]; a{3} = [8 2 10]; a{4} = [8 2 9 9 2 1 3 10]; v = cellfun('size',a,2); r = nume...

7 years ago | 1

| accepted

Answered
How can i make plot with different length vector?
To plot, you are supposed to have dimensions of X and Y equal. Read about interp1. You can do inteprolation and get both the arr...

7 years ago | 0

Answered
Solve matrix reshape error
A = rand(6,1200) ; iwant = [sum(A(:,1:600),2) sum(A(:,601:end),2)] ;

7 years ago | 0

Answered
NEED HELP ON MATRIX MANIPULATIONS
A = [ 21 14 7 0 18 11 4 3 15 8 1 6 12 5 2 9 9 ...

7 years ago | 0

| accepted

Answered
How to plot trajectory curve given x and y points as well as minima and maxima of the polynomial?
syms a b c d e ; eqns = [e == 80 ; 207360000*a+1728000*b+1440*c+120*d+e == 0 ; 384160000*a+2744000*b+19600*c...

7 years ago | 0

Load more