Answered
Intersection of three cylinders
Have a look here: https://in.mathworks.com/matlabcentral/answers/93623-how-do-i-plot-the-line-of-intersection-between-two-surf...

7 years ago | 0

| accepted

Answered
how to use dlmwrite for excel sheet has three columns
T = readtable('myexcelfile.xlsx') ; writetable(T,'out.dat') ;

7 years ago | 0

Answered
How to code this avarage gradient equation in matlab?
Let F be your matrix. [dfdx,dfdy] = gradient(f) ; M = (dfdx.^2+dfdy.^2)/2 ; AG = mean(mean(M)) ; I gave answer quckly....

7 years ago | 0

| accepted

Answered
Multiple input values for same function and plot them?
A = [10 20 30 405 50] ; th = linspace(0,2*pi) ; X = zeros(length(A),length(th)) ; for i = 1:length(A) X(i,:) = A(i)*sin(...

7 years ago | 0

Answered
Error using patch - Non-numeric data is not supported in 'patch'. While using Plotcube
width = 1 ; length = 1 ; height = 1 ; plotcube([width length height],[ 0 0 0 ],1,[1 0 0]);

7 years ago | 0

Answered
How can I get the angle between centroid of a binary object and a point on it's boundary?
Get the centorid of the image by using mean. So I assume you know all the points A,B,C,D and O. You have (x,y) in hand. If you w...

7 years ago | 0

Answered
Fitting the data without using curve fitting tool
YOu can use polyfit. p = polyfit(t,z(:,32),3) ; zi = polyval(p,t) ;

7 years ago | 0

Answered
Coloring with coordinates.
x_data = [3/8 4 8 16 30 50 100]; uppery = [100 100 100 85 60 30 10]; lowery = [100 95 80 50 25 5 0]; x = [x_data fliplr(...

7 years ago | 0

| accepted

Answered
how to solve 'Error using | Matrix dimensions must agree. ' ?
clc; clear all; T=0:0.001:0.07; size(T); cm=1.; lo=-3.545-0.833*log(100*cm)-(9601.-2368.*log(100.*cm))./(T-195.7-32.25*log(1...

7 years ago | 0

Answered
Saving geotiff using geotiffwrite
Refer this: https://in.mathworks.com/matlabcentral/answers/355554-problem-creating-a-geotiff-from-a-non-georeferenced-image

7 years ago | 0

Answered
How to compute several results from incremental input values using loops?
x0 = 32 ; dx = 0.2 ; N = 20 ; % iterations needed for i = 1:N x = x0+(i-1)*dx ; end YOu can avoid for loop using: ...

7 years ago | 0

Answered
How to rename a cell into Table
Multiple ways. One way would be, convert the cell tinto table T using cell2table and rename the columns you want by T.Proper...

7 years ago | 0

Answered
How to use imagesc in a time loop?
for time = 1:timeSteps newMatrix = GenerateNewMatrix(matrix,probability); matrix = newMatrix; hAxes = gca; im...

7 years ago | 0

| accepted

Answered
manipulation attribute between two matrices inside loop
If you are new to MATLAB, read about basics of MATLAB. Read about matrix indexing and loops. MM = rand(40,10) ; MMM = rand(4...

7 years ago | 0

Answered
Please help me to understand Error "The expression to the left of the equals sign is not a valid target for an assignment.
A(1:4) = rand(1,5) ; The above will throw error. Becuase A is intialized as 1X4, we are trying to replace it with 1X5.

7 years ago | 0

Answered
How to add values in the array in matlab?
Read about sum D = rand(11,1) ; thesum = sum(D)

7 years ago | 0

Answered
how to find connected neighbors?
If you know the location of the pixel..uou can use knnsearch or rangeseach. YOu can also search in mathworks, this question has ...

7 years ago | 0

| accepted

Answered
How to Plot in specific interval
Read about xlim xlim([-5 5])

7 years ago | 1

Answered
how can I plot this function ?
Read about matlab element by element operations: R1=1000 %Ohm% C1=0.000000032;%F% R2=1000 %Ohm% C2=0.000000032;%F% x=lin...

7 years ago | 0

Answered
Contour plot using three vectors
It depends on how is your data. Is your data a structured data or a unstructured data? YOu have the following options. Let (x,y,...

7 years ago | 3

Answered
Anonymous function outputs to table
q = 0:0.01:0.25 ; doublingtime = @(q) log(2)./log(1+q); dt = doublingtime(q); T = table(q,dt)

7 years ago | 1

| accepted

Answered
i need to convert below batrix to another matrix
b=[308 -1 2 3 -1 2 -1; -1 -1 2 1 0 1 0; 1 2 -1 -1 -1 -1 2; 0 0 1 -1 -1 2 -1]; % Get positive co...

7 years ago | 0

| accepted

Answered
Finding closest coordinates and rearranging order to match
Read about knnsearch. This is your function for today.

7 years ago | 0

Answered
use matlab to plot fft from excel sheet
It looks like there is no variable name A2 in the table. Try using: T.(1), T.(2) etc...or check the variablenames by printing...

7 years ago | 0

Answered
How to divide an image into different shapes?
doc imcrop doc impoly doc imfreehand YOu can also define your locations in the shape you want......use inpoly and pick only i...

7 years ago | 0

Answered
How can we read specific rows from an excel file in matlab?
Read about readtable. T = readtable(filename) ; YOu can access the columns using T.(1), T.(2) or T.(alpha), T.(beta), etc. ...

7 years ago | 1

| accepted

Answered
Help with inverse logarithm
Read about element by element operations in matlab. % Solve for life using SWT equations for a, b, and c. Sa = 220; % Stres...

7 years ago | 1

Answered
Making a Function with output only, no input
Run / call the function by typing as below in the command window. [x,y] = getData() ;

7 years ago | 1

| accepted

Answered
How can I turn vector to scalar?
x = 10:10:70 ; % this will generate [10,20,..70] ; sumx = sum(x) ; % this will give you sum of array Also you can call eac...

7 years ago | 0

Answered
Reassigning values in a matrix
Read about max toget the maximum value in the array. Read about inequalitites >and < to get the other task solved. Read abou...

7 years ago | 0

Load more