Answered
[v c]=voronoin(). Here i have to know about the output files of v and c.
v denotes the points/ coordinates of the voronoi edges and c gives you the nodal connectivity. The array c has the indices of th...

3 years ago | 2

| accepted

Answered
How to extract a specific region from a data plot through a shapefile
REad about inpolygon. Shout and say inpolygon today :). You may refer the below link for a demo: https://in.mathworks.com/mat...

3 years ago | 1

| accepted

Answered
Mathworks_Coneference_in_Chennai
You may look at events page for the upcoming page. https://in.mathworks.com/company/events.html?s_tid=gn_ev The beolw is the...

3 years ago | 1

| accepted

Answered
MATLAB Code for an expression with a complex number
syms L eqn = 228 + (0.6*56.78 - 1i*0.6*2.84 + 1i*100*L* 56.78 + 100/ L * 2.84) ; s = solve(eqn,L)

3 years ago | 1

Answered
Trouble getting im2double to show image
imshow ('im2') In the above line im2 is considered as a string, this is not correct. It should be: imshow (im2)

3 years ago | 1

| accepted

Answered
Permutation with repeating elements.
A = {[1 2], [3 4], [5 6 7]} ; iwant = perms(A)

3 years ago | 0

Answered
Sigma sum error (Unrecognized variable n)
Something like this: clear ; clc ; thesum = 0 ; for n = 1:10 a = @(x) ((-0.07305.*x.^5+2.813.*x.^4-39.78.*x.^3+249.5...

3 years ago | 1

Answered
Rename columns before import
You can read the .csv file using readtable. After reading, you can rename the column name to what you want. Read about readtable...

3 years ago | 1

Answered
how to laplace(exp(-2t)u(t-4))
syms u(t) f = exp(-2*t)*u(t-4) ; F = laplace(f)

3 years ago | 1

Answered
How to obtain slop for a curve at each point??
load bw2.mat ; x = N(:,1) ; y = N(:,2) ; m = gradient(y)./gradient(x) ;

3 years ago | 2

| accepted

Answered
how do I store the values of the equation from a for loop in a matrix, each run being the following row?
y = 0; n = 1; a(1,:) = y; x = linspace(0,2,1000); imax = 9; n = 1:imax ; [n,x] = meshgrid(n,x) ; y = 1./n.*sin(n.*2*p...

3 years ago | 1

Answered
Converting Table to Readable Format for Scatter Plot
T1 = readtable('Data.xlsx'); scatter(T1.(1), T1.(3));

3 years ago | 0

Answered
Hi! Can anybody help me with my code?
mass_AnPoll = 0; for i = 1:5 mass_AnPoll = mass_AnPoll + mer(1,i); % mer(1,i) this should be a single number of you index...

3 years ago | 2

Answered
Function that produce an uniform random numbers for loop error
This line: Urand(i)= mod(la*seed(i-1),P); Your seed is a scalar, it has sinlge value. You are trying to extract more number by...

3 years ago | 1

| accepted

Answered
how do I annote a vector on a signal plot
A = rand(1,100) ; idx1 = find(A>0.7) ; idx2 = find(A<0.4) ; plot(A,'b') hold on plot(idx1,0.8,'+r') plot(idx2,0.2,'+k')

3 years ago | 1

| accepted

Answered
How do I fix this? "Index in position 2 exceeds array bounds (must not exceed 1)."
Error is quite simple. This line: H_tilde = Y(1,pilot_loc(k))./Xp(k); % LS You are supposed to use Y(pilot_loc(k)); because Y ...

3 years ago | 1

Answered
Plotting Stem Plots with animatedline
x = linspace(0,4*pi,1000); y = sin(x); for i = 1:length(x) stem(x(1:i),y(1:i)) axis([min(x) max(x) min(y) max(y)]) ...

3 years ago | 1

Answered
Sort rows without sortrows function in MATLAB
A = [9361 8366 9361 28317 9364 27948 9364 8735 9365 29127 9365 7556 9366 1870 9366 348...

3 years ago | 0

Answered
Line colour code order with marker
Note that xlsread is obselte. You can use readtable. A = rand(5,10) ; C = {'r','b','g','-.c','-dm'} ; % specify your colors ...

3 years ago | 0

| accepted

Answered
I want arrays of one and two but this code doesn't do it
u=[20,30,40]; one = zeros Noise=10:5:40 ; one = zeros(length(Noise),[]) ; temp = zeros(length(Noise),[]) ; time1 = zeros(...

3 years ago | 0

Answered
Extract rows that their columns have specific values
A = [ 0.1 0 ; 0.5 0 ; 3 0 ; 0 0 ] ; for i = 1:size(A,1) ind = (A(i,:) >=0) & (A(i,:) <=1); ...

3 years ago | 0

Answered
Why is the Orientation field of the SURFPoints structure returned by detectSURFFeatures a vector of zeros?
I = imread('cameraman.tif'); points = detectSURFFeatures(I); [features,validPoints] = extractFeatures(I,points) ; Now check t...

3 years ago | 1

| accepted

Answered
modify .m file using a .m file
So you make k_off as an input to the function and call it in a loop. % Main function k_off = 0:0.1:1 ; m = length(k_off) ; ...

3 years ago | 1

Answered
how to create a fan shape/ arc inside an image?
May be something like this: [I,map] = imread('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1152743/rect.png') ...

3 years ago | 0

Answered
Stress strain with respect to time
t = linspace(0,0.25) ; y = sin(pi/2+25*pi*t) ; plot(t,y)

3 years ago | 0

| accepted

Answered
Extract coordinates from a geopolyshape
The present version is much easier. Note that the class of us_states is a table. You can extract the column using: us_states =...

3 years ago | 0

Answered
How to check decimals of a number in MATLAB?
x = 5.5 integ = fix(x) frac = mod(abs(x),1)

3 years ago | 1

| accepted

Answered
How to Perform Multivariate Regression with Two Independent Variables on a Surface
REad about fit https://in.mathworks.com/help/curvefit/evaluate-a-surface-fit.html

3 years ago | 0

Answered
How do I get the only the integer part?
a=1.8460e+03; round(a)

3 years ago | 0

| accepted

Answered
can i access field by using values in structure?
S = struct ; S.name = {'Tom' 'Dick' 'Harry'} ; S.sex = {'M' 'M' 'F'} ; S.Age = [16 17 18] ; val = 'F' ; fields = fieldna...

3 years ago | 0

| accepted

Load more