Answered
How to draw the mode displacement diagram
You may refer this: https://in.mathworks.com/matlabcentral/fileexchange/30970-natural-frequencies-buckling-loads-of-columns-usin...

5 years ago | 0

Answered
I am new to matlab and i want to plot a graph
X=0:0.1:1 ; A=0.118 ; B=0.1030; S= A*X+B*(1-X); plot(X,S)

5 years ago | 0

| accepted

Answered
divide w=3*x^2+8*x+1 and y=x+1; with x=2
syms x w = 3*x^2+8*x+1 ; y = x+1 ; a=subs(w,2) ; b=subs(y,2) ; val1 = a/b ; %% w=[3 8 1]; y=[0 1 1]; x=2; a=polyva...

5 years ago | 1

| accepted

Answered
Curvature estimation in contour extracted from gray image
You may use this file exchange function: https://in.mathworks.com/matlabcentral/fileexchange/32696-2d-line-curvature-and-norma...

5 years ago | 0

| accepted

Answered
How to change the shape/size of a HeatMap/clustergram?
You can use imresize, interp2 functions to get your desired dimensions. If A is your 8*53 matrix. A_new = imresize(A,[50 50])...

5 years ago | 0

Answered
HOW CAN I MULTIPLY VALUES IN JUST ONE COLUMN?
It looks like you have a table. If T is your table and you want to multiply 3 and 4 th column. iwant = T.(3).*T.(4) ; % .* <-- ...

5 years ago | 0

| accepted

Answered
Variable Size Data Ouput error
Note that the function name and the variable are on the same name. This is not allowed.

5 years ago | 2

| accepted

Answered
Display the polynomial : f(x)-x^5+12.1x^4=40.59x^3-17.015x^2-1.95x+35.88, the calculate f(5)
syms x f=(x^5 - 12.1*x^4 - 40.59*x^3 + 17.015*x^2 +1.95*x - 35.88) y=subs(f,5)

5 years ago | 1

| accepted

Answered
dates in x axis plot
Convert your date into class datetime you can striaght away use plot. t = datetime(2021,1,1):datetime(2021,12,31) ; y = rand(...

5 years ago | 1

| accepted

Answered
2D vector plot from three Euler angles
u = cos(theta) ; v = sin(theta) ; quiver(x,y,u,v)

5 years ago | 0

Answered
how to sort the values of each rows in the cell array
If A is your cell array. B = cellfun(@sort,A,'UniformOutput',false)

5 years ago | 0

Answered
Anonymous function or for loop?
Off course, you can achieve the same without using anonymous function. t = 0 : 0.1 : 20; c1 = 53; % (0 <= t <= 10) c2 = 6...

5 years ago | 0

| accepted

Answered
Attempted to access G(2305,1,3); index out of bounds because size(G)=[2304,4096,3
You see the error is clear. You are trying to extracting more number of elements than present in the matrix. Example: A = ran...

5 years ago | 0

Answered
Loading a random file from a directory
matFiles = dir('*.mat') ; N = length(matFiles) ; thisFile = matFiles(randperm(N,1)).name

5 years ago | 0

| accepted

Answered
Anonymous function or for loop?
The second version is a vectorised version and this will be fast compared to loop. Your loop is implemented. You check the f...

5 years ago | 0

Answered
How can I Draw a Line on a 3D plot?
[X,Y,Z] = peaks(100) ; % DRaw a line at origin x = linspace(-3,3) ; y = repelem(0,1,length(x)) ; z = interp2(X,Y,Z,x,...

5 years ago | 1

Answered
graph wont display on a simple code
As you are plotting a point, you need to use marker. m=input("input mass "); n=0; figure hold on while n<10 P=12.3432...

5 years ago | 0

Answered
How do I solve this equation in MatLab?
Why worry the final answer is same right? syms x eq = 3*sqrt(x^2-4) ; A1 = int(eq,2,3) ; A2 = (9/2)*sqrt(5) - 6*log((3 +...

5 years ago | 0

| accepted

Answered
I want to ask what wrong with my codes . please help me out
You should not name a variable starting with a number. Variable name should start with a character. Replace the variable 1p =...

5 years ago | 0

Answered
Saving data after each iteration
C_pulse = cell(N,1) ; D_pulse = cell(N,1) ; files = importdata('name_files2.txt'); for i = 1:length(files) [C_pulse{i}, ...

5 years ago | 0

| accepted

Answered
How to extract area using inpolygon
Check your polygon coordinates. They are not up to the mark as shown in the first figure. xv= [104.61, 102.98, 109.37, 109.52];...

5 years ago | 0

| accepted

Answered
time series interpolation of irregular data
data = [ 2012 105683 2013 1108498 2014 1177810 2015 1271872 2016 1351970 2017 1433392 ...

5 years ago | 1

| accepted

Answered
how to plot column vs column from csv file using readmatrix?
You need to specify the column which you want. Read about MATLAB indexing. array=readmatrix('data.csv'); plot(array(:,1),ar...

5 years ago | 1

| accepted

Answered
What is the problem in my for loops?
function tabulatedata() m = input('Enter m: '); n = input('Enter n: '); p = input('Enter p: '); fprintf('\nColumn 1\Colu...

5 years ago | 0

Answered
How to plot longitude, latitude and time on a map
Convert the data into .kml file. And draw on google map.

5 years ago | 0

| accepted

Answered
How to extract the features of each cluster in the k means clustering?
If idx are the indices obtained from kmeans. You can plot the data using gscatter. Read about it. If A is your data, you can pic...

5 years ago | 0

Answered
how to save values for changing number of columns using "for loop "
r=[10 50 100] ; n = length(r) ; X_telda = cell(n,1) ; for i = 1:n X_telda{i} = (U(:,1:r(i))*(U(:,1:r(i))'*X)); end ...

5 years ago | 0

| accepted

Answered
Prod giving a different answer than repeated multiplication
prod gives you element by element multiplication. Check: A = rand(2,2,3) ; X = prod(A,3) ; Y = A(:,:,1).*A(:,:,2).*A(:,:,...

5 years ago | 0

| accepted

Answered
looping for a function
This is what you are looking for? [m,n,p] = size(b) ; % b is matrix of size 80x30x400 iwant = zeros(p,2); for i = 1:p ...

5 years ago | 0

Load more