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 ...

5 days 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...

5 days 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...

5 days 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 ...

6 days ago | 0

| accepted

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

6 days 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...

7 days 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...

7 days 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...

7 days 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...

8 days 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...

8 days 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)....

8 days 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

8 days 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...

8 days 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...

8 days 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...

8 days ago | 0

| accepted

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

9 days ago | 0

| accepted

Answered
conversion of pixels into string
Read about num2str.

9 days ago | 0

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

9 days 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)

9 days 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 ...

9 days 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...

10 days ago | 0

Answered
Averaging Matrix and store it in a new matrix
A = rand(10) ; [m,n] = size(A) ; [X,Y] = meshgrid(linspace(0.5,(m-0.5),m),linspace(0.5,(n-0.5),n)) ; t = A(:) ; pcolor...

10 days ago | 0

| accepted

Answered
north east center cartesian coordinate to spherical coordinate
Read about cart2pol, cart2sph.

11 days ago | 0

Answered
How to delete the first or the first two characters in a string?
string(1:2) = [] % To remove the firt two elements

11 days ago | 0

| accepted

Answered
Add strings with a loop
Name =cell(numRows) ; for j=1:numRows; Name{j}=Test.Measure(j, 1).name end iwant = unique(Name)

11 days ago | 0

| accepted

Answered
How do I concatenate multiple vectors at random order?
Use them as cells and make the indices random. a{1} = 1:10 ; a{2} = 2:12 ; a{3} = 3:13 ; idx = randperm(3) ; iwant = cel...

11 days ago | 0

| accepted

Answered
Generating a 1D random walk
N = 1000 ; W = [-1 1] ; RW = zeros(N,1) ; RW(1) = W(randperm(2,1)) ; for i = 2:N RW(i) = RW(i-1)+W(randperm(2,1)) ; ...

11 days ago | 0

| accepted

Answered
Plotting multiple graphs but only a graph is shown
You must remove hold off in the for loop.

11 days ago | 0

| accepted

Answered
Find Intersection coordinates of Contour and line plot
You can use this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function

12 days ago | 0

Load more