Answered
Draw a line between two points on plotted data and compute its length
px = [1, 2, 5]; py = [1, 2, 1.5]; x = [px(1) py(1)] ; y = [px(2) py(2)] ; z = [px(3) py(3)] ; plot3(x,y,z,'r') d =...

5 dagar ago | 1

| accepted

Answered
Function Code ( Matlab )
x=9 ; a=1; b=3 ; c=5 ; F = (log(a*x^2+b*x+c)-sin(a*x^2+b*x+c))/(4*pi*x^2+cos(x-2)*(a*x^2+b*x+c)) You must read about MATLA...

6 dagar ago | 0

Answered
Heatmap of 2D plot
t=[1/512:1/512:5]'; z = zeros(size(t)); col = amp; % This is the color, vary with amp in this case. surface([t t],[amp amp],...

6 dagar ago | 0

Answered
How to export the result of for loop to the excel file
A = pareto_frontier(:,2:3) ; xlswrite('test.xlsx',A) Also have a look on write2table.

6 dagar ago | 0

| accepted

Answered
How can I find only points in sector range ?
Read about inpolygon.

6 dagar ago | 0

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 0-by-1.
You want this. S = load("data.mat") ; data = S.Fe2MnGe_new ; v = data(:,1) ; ca = data(:,2) ; z = data(:,3) ; nx = ...

6 dagar ago | 0

| accepted

Answered
Compare and remove duplicates with min value of another column
num = xlsread("sample.xlsx") ; C1 = num(:,1) ; C4 = num(:,end) ; [c,ia,ib] = unique(C1) ; N = length(c) ; iwant = zero...

6 dagar ago | 0

Answered
How to find specific value in a table
You canget the index where it lies using strfind. Let T be your table. idx = strfind(T.Formula,'H2O') ; % logical index i...

6 dagar ago | 0

| accepted

Answered
Can I name data in the scatter graph?
This can be very much done......read about text. With this you can place text where ever you want by providing location. Read ...

6 dagar ago | 0

Answered
Can anyone help me to fix my code?
Quickly I made this......you need recheck though... X=[1:1:10]'; Y=[0.5379,0.827,1.2654,1.5324,1.717,1.3983,1.6844...

6 dagar ago | 0

Answered
Finding Largest Factor Using While Loop
n = 15 ; largestfactor=floor(n/2); while largestfactor>0 if mod(n,largestfactor)==0 break end largest...

6 dagar ago | 1

Answered
How can I remove the line in 3D plot
clc; clear all ; slow = [21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 22 22 22 22 22 22 22 22 22 22 22 22 22 22 ...

7 dagar ago | 0

| accepted

Answered
How to store an image from imshow?
Read about imwrite.

7 dagar ago | 0

| accepted

Answered
Extracting information from images of different size
The following links shall be useful: https://in.mathworks.com/help/vision/examples/recognize-text-using-optical-character-reco...

8 dagar ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
fid = fopen ('Matrix_A.txt','r'); i = 1; A = cell([],1) ; while ~feof(fid) A{i} = str2num(fgets(fid)); i = i + 1; e...

8 dagar ago | 0

Answered
How to graph multiple points onto one graph?
data = [0,3.8*10^8 1,4.2*10^7 2,1.5*10^7 3,7.8*10^7 4,4.7*10^6 5,3.16*10^6 6,2.3*10^6 7,1.7*10^6 8,1.3*10^6 9,1.05*10^6...

8 dagar ago | 0

Answered
Variable x must be of size [2 1]. It is currently of size [2 2]. Check where the variable is assigned a value.
A = [1 2 4 5 7 ; 9 2 1 4 13] ; B = [-11 2 ; 3 -1 ; 2 0; 5 11 ; -21 1]; C = A*B ; D = B*A ; s = det(C) ; t = det(D) ; x...

9 dagar ago | 1

| accepted

Answered
How do I make the following a function?
[M,VSD] = myfunction(A) ; % Christopher Clarke % 10/05/2020 % This function calculates the mean and standard dev...

9 dagar ago | 0

Answered
Why calculation with using matrix is different from manual calculation?
YOu have missed . in some places, check the below corrected line: Re=10^5:10^5:10^6; C_D = 24./Re + (2.6*(Re/5))./(1+(Re/5.0)....

9 dagar ago | 0

| accepted

Answered
how can i solve this error?
x=1:0.1:6; for i=1:length(x) h(i)=z2+(x(i)-ls)*z4; end

9 dagar ago | 1

Answered
Creating 2D contours from XYZ values
Read about delaunayTriangulation. And then use this https://in.mathworks.com/matlabcentral/fileexchange/38858-contour-plot-for-s...

9 dagar ago | 0

Answered
Can anyone help me salve the error "Not enough input aruments in line 15
EDT = your value ; RMS = your value ; posteriror = your value ; printit = you value ; [stnin stnout] = estimLocRMS(EDT, RM...

9 dagar ago | 0

| accepted

Answered
Can somebody help me with plate element in tension analysis in MATLAB?
This is a subject specifc question. You must learn FEA first and then code in MATLAB. Refer this book which teaches FEA with MAT...

9 dagar ago | 0

| accepted

Answered
Taking number out from the image name.
[d,name,ext] = fileparts(fn) ; a = str2num(name) ;

10 dagar ago | 0

| accepted

Answered
conversion of pixels into string
Read about num2str.

10 dagar ago | 0

Answered
how to set limit of scatter plot
Reead about xlim, legend, text, axistight.

10 dagar ago | 0

Answered
Calling multiple variables in one line of output
n1 = rand; n2 = rand ; fprintf("President Jones, for your %d, Kiloton blast at %d miles\n",n1,n2)

10 dagar ago | 0

| accepted

Answered
stopping the loop and save in a cell array
Follow somehting likethis: a = [1 3 4 2 3 4 5 6 3 4 5 6 8 9 10 9 8 7 6 7 8 9 8 7 5 4 3 2 4 5 3 1 2 4 4 3 2 4 6 5 4 6 7 9 9 10 ...

10 dagar ago | 0

Answered
how to get the division number
Read about linspace, mod. It is a basic mathematics that if mod(x,n) = 0, then x is divisible by n. n = 7 ; x = 1:15 ; x(mo...

11 dagar ago | 0

Load more