답변 있음
in nonlinear dynamics how to find lyapunov exponent?
https://in.mathworks.com/help/predmaint/ref/lyapunovexponent.html#d123e13447

4년 초과 전 | 0

답변 있음
could anyone help me how to randomly pair two numbers in each pair.
idx = reshape(randperm(12),[],2)

4년 초과 전 | 0

| 수락됨

답변 있음
The Usage of Dot Operation in Plot a Function
You missed element-by-element division. Now check x =-4:0.1:9; f1 = ((3.*cos(x))./(0.5.*x+exp(-0.5.*x)))-(4.*x/7); % <----...

4년 초과 전 | 0

답변 있음
How to duplicate rows of a matrix if the number of copies for each row are different?
Read about repmat. b = [2 4 5] ; A = repmat(b,2,1) B = repmat(b,3,1)

4년 초과 전 | 0

답변 있음
Plot a matrix and assign properties for each column
A = rand(10,3) ; x = 1:10 ; plot(x,A) legend({'1','2','3'}) B = rand(20,3) ; x = 1:20 ; plot(x,B(:,1),'r',x,B(:,2),'b',x,B...

4년 초과 전 | 0

| 수락됨

답변 있음
how to split a column matrix to sub matrix with specific type?
Let X be your column data and let k be your value. % Arrange three time steps as moving window X = rand(10,1) ; k = 3 ; i...

4년 초과 전 | 0

| 수락됨

답변 있음
How to a plot a surface from excel sheet XYZ
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/791474/excel-surface.xlsx') x = T.(1) ; y = T.(2)...

4년 초과 전 | 1

| 수락됨

답변 있음
matlab solve not giving all the solutions
Use vpasolve and specify the Intervel or initial condition. Read about vpasolve. syms x eqn = (30.3760*exp(0.89*(pi-x))*cos(x)...

4년 초과 전 | 0

답변 있음
Index exceeds number of array elements. How can I fix this?
Replace this line: L1(i)=L2*cos(theta2)-L3*cos(theta3(i)) with L1=L2*cos(theta2)-L3*cos(theta3)

4년 초과 전 | 2

| 수락됨

답변 있음
Create a n*n grid undirected graph
[x,y] = meshgrid(1:10) ; dt = delaunayTriangulation(x(:),y(:)) ; triplot(dt)

4년 초과 전 | 1

답변 있음
Compare matrix 16000 X 20000 with smaller matrix 16000X1
It should actually work. A = rand(5) ; B = rand(5,1) ; C = A > B If it is throwing error, try: B = reshape(B,1,5); C = A ...

4년 초과 전 | 1

| 수락됨

답변 있음
Convert a RGB image to gray with parallel processing?
You need not to use a loop here and parallel computing. Just the below should work. Im=imread('5.jpg'); %0.2989 * R + 0.5870 ...

4년 초과 전 | 0

답변 있음
For loop on timetable
rf = readtimetable('Sydney Rain 1994.csv'); dailyRF = retime(rf,"daily","sum"); dt=hours(1); event= retime(dailyRF,"regular",...

4년 초과 전 | 0

답변 있음
Index exceeds number of array elements/Issue with Symbolic Variable
A = [0 1;-2 -0.2]; [T,Gamma] = eig(A); syms t e_Tinv_A_T = [exp(Gamma(1,1)*t) 0 ; ... 0 ...

4년 초과 전 | 0

답변 있음
how can i compare 2 .wav files or more ?
Get both the wave data to same size using interp1 and then use regression.

4년 초과 전 | 1

답변 있음
I have same values for all the 3 matrices
You need to initialize the variables which store data inside the for loop. % Initilization r1source = zeros(length(y),length(...

4년 초과 전 | 0

답변 있음
How to Find Number of Group of Scattered Data?
Read about kmeans, clusterdata.

4년 초과 전 | 0

| 수락됨

답변 있음
double data type in image processing
Try to read colormap alsp. Any ways for the present image it is empty. [I,cmap] = imread('cameraman.tif'); imshow(double(I),c...

4년 초과 전 | 1

답변 있음
how to do so ?
This is very simple home work. Demo example is given and rest you should do. x = -5:0.1:5 ; y = sin(x) ; plot(x,y)

4년 초과 전 | 0

답변 있음
Contourf line setting number
[c,h] = contourf(peaks(100)) ; clabel(c,h,'LabelSpacing',500,'FontSize',15,'Color','red') Try to put more label spacing, so th...

4년 초과 전 | 0

| 수락됨

답변 있음
Combine multiple tables into one table and export as an excel file
files = dir('*.mat') ; % you are in the folder where mat files are present N = length(files) ; T = cell(N,1) ; for i = 1:N...

4년 초과 전 | 1

| 수락됨

답변 있음
Unable to perform assignment because the left and right sides have a different number of elements.
Error is simple; you are trying to save more/ less number of elements than the LHS is indexed. % Example: A = zeros(1,5) ; A...

4년 초과 전 | 1

답변 있음
How to shade a region between two curves in a complex plane?
clc; clear all ; r1 = 2; % Outer radius of the annulus r2 = 1; % Inner radius of the annulus n=0; t = 0:0.001:2*pi % Coverin...

4년 초과 전 | 1

| 수락됨

답변 있음
What variable value should I change here?
for num_image = 1 : 1 : 313 ct1 = dicomread(sprintf('1-%03d.dcm', num_image)); ct_8 = (ct1)/16; c9 = imresize(ct_...

4년 초과 전 | 0

답변 있음
GMT colormap "geo"
Try this: https://in.mathworks.com/matlabcentral/fileexchange/57773-cmocean-perceptually-uniform-colormaps

4년 초과 전 | 0

답변 있음
How can I read a text file with mixed characters
fid = fopen('data.txt') ; a = textscan(fid,'[%f, %f, %f][%f, %f, %f]') fclose(fid) ; cell2mat(a)

4년 초과 전 | 0

답변 있음
Adding Linestyle to ezplot in Matlab
x = linspace(0,10) ; y1 = x.^2.*exp(x) ; y2 = x.^3 ; plot(x,y1,'r',x,y2,'b') Read about plot you can use your desired line ...

4년 초과 전 | 1

답변 있음
how to sum all elements in cell?
Read about cellfun.

4년 초과 전 | 0

답변 있음
Summing elements of a vector without a for loop
Read about movsum https://in.mathworks.com/help/matlab/ref/movsum.html

4년 초과 전 | 1

답변 있음
how can i solve quadratic equation to find elements of matrix
syms a b c d eqn = a == -b/(c*d - b^2) ; solve(eqn,b) Now you have the formula (this could be achieved with hand calculation...

4년 초과 전 | 0

| 수락됨

더 보기