Réponse apportée
[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...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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)

plus de 3 ans il y a | 1

Réponse apportée
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)

plus de 3 ans il y a | 1

| A accepté

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

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
how to laplace(exp(-2t)u(t-4))
syms u(t) f = exp(-2*t)*u(t-4) ; F = laplace(f)

plus de 3 ans il y a | 1

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

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
Converting Table to Readable Format for Scatter Plot
T1 = readtable('Data.xlsx'); scatter(T1.(1), T1.(3));

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 2

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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')

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 1

Réponse apportée
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)]) ...

plus de 3 ans il y a | 1

Réponse apportée
Sort rows without sortrows function in MATLAB
A = [9361 8366 9361 28317 9364 27948 9364 8735 9365 29127 9365 7556 9366 1870 9366 348...

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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(...

plus de 3 ans il y a | 0

Réponse apportée
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); ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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) ; ...

plus de 3 ans il y a | 1

Réponse apportée
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') ...

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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 =...

plus de 3 ans il y a | 0

Réponse apportée
How to check decimals of a number in MATLAB?
x = 5.5 integ = fix(x) frac = mod(abs(x),1)

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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

plus de 3 ans il y a | 0

Réponse apportée
How do I get the only the integer part?
a=1.8460e+03; round(a)

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Charger plus