Answered

Finding the roots for an equation

syms x a eqn = x^4+5*a*x^2+6*a==0 ; s = solve(eqn,x)

Finding the roots for an equation

syms x a eqn = x^4+5*a*x^2+6*a==0 ; s = solve(eqn,x)

8 months ago | 0

| accepted

Answered

Right hand side of an assignment into a table must be another table or a cell array.

bias = table('Size',[1,11], 'VariableTypes', {'datetime', 'string', 'double', 'double', 'double', 'double', 'double', 'double', ...

Right hand side of an assignment into a table must be another table or a cell array.

bias = table('Size',[1,11], 'VariableTypes', {'datetime', 'string', 'double', 'double', 'double', 'double', 'double', 'double', ...

8 months ago | 0

Answered

Filtering Values in Matlab in the Same Matrix Size

A = [2 5 8; 2 6 7; 1 9 5] ; A(A<=5) = 0

Filtering Values in Matlab in the Same Matrix Size

A = [2 5 8; 2 6 7; 1 9 5] ; A(A<=5) = 0

8 months ago | 0

| accepted

Answered

How do you plot a line on a function defined by colors?

[X,Y,Z] = peaks(100) ; contourf(X,Y,Z)

How do you plot a line on a function defined by colors?

[X,Y,Z] = peaks(100) ; contourf(X,Y,Z)

8 months ago | 0

Answered

Plotting a cartesian equation with an imaginary component of 0*1i

c = 4+1i*0 ; plot(real(c),imag(c),'*r')

Plotting a cartesian equation with an imaginary component of 0*1i

c = 4+1i*0 ; plot(real(c),imag(c),'*r')

8 months ago | 0

| accepted

Answered

How can I generate a 3D torus taking a function as the torus shape?

R1 = 3 ; R2 = 1 ; u = linspace(0,2*pi-eps) ; v = linspace(0,2*pi-eps) ; [u,v] = meshgrid(u,v) ; X = (R1+R2*cos(v)...

How can I generate a 3D torus taking a function as the torus shape?

R1 = 3 ; R2 = 1 ; u = linspace(0,2*pi-eps) ; v = linspace(0,2*pi-eps) ; [u,v] = meshgrid(u,v) ; X = (R1+R2*cos(v)...

8 months ago | 0

Answered

Interpolate MATLAB geoscatter/geoplot data to estimate average wind speeds in the Gulf of Mexico?

REad about scatteredInterpolant, griddata.

Interpolate MATLAB geoscatter/geoplot data to estimate average wind speeds in the Gulf of Mexico?

REad about scatteredInterpolant, griddata.

8 months ago | 0

Answered

Plotting my own validation and loss graph while training a CNN

[net,info] = traiNetwork() ; % you need to train the network rmse = info.TrainingRMSE ; % get the RMSE curve from info ep...

Plotting my own validation and loss graph while training a CNN

[net,info] = traiNetwork() ; % you need to train the network rmse = info.TrainingRMSE ; % get the RMSE curve from info ep...

8 months ago | 0

Answered

Why won't my plot start 0 and increase to 0.005 like my Ld

clc; clear all ; % url = 'https://www.ioc-sealevelmonitoring.org/list.php?operator=&showall=all&output=contacts#' ; % T = we...

Why won't my plot start 0 and increase to 0.005 like my Ld

clc; clear all ; % url = 'https://www.ioc-sealevelmonitoring.org/list.php?operator=&showall=all&output=contacts#' ; % T = we...

8 months ago | 0

Answered

Writing into excel sheet from matlab

N = 10 ; iwant = zeros(N,1) ; for i = 1:N iwant(i) = i ; end T = table(iwant) ; writetable(T,'Test.xlsx')

Writing into excel sheet from matlab

N = 10 ; iwant = zeros(N,1) ; for i = 1:N iwant(i) = i ; end T = table(iwant) ; writetable(T,'Test.xlsx')

8 months ago | 0

Answered

I am trying to read xlsx file data into MATLAB environment, not able to read xlsx variables more than 10.

Don't use xlsread, it is obselete. Use readtable.

I am trying to read xlsx file data into MATLAB environment, not able to read xlsx variables more than 10.

Don't use xlsread, it is obselete. Use readtable.

8 months ago | 0

Answered

Select images from a folder based on their similarity.

Read about ssim.

Select images from a folder based on their similarity.

Read about ssim.

9 months ago | 0

| accepted

Answered

Plotting a time series e^(-at) cosā”((bt) u_s (t)) for two cases, first for a=3 and b=50, then for a=-3 and b=50.

clc; clear ; a1=3; b1=50; a2 = -3; b2= 50; t = linspace(0,1) ; f1 = exp(-a1*t).*cos(b1*t) ; f2 = exp(-a2*t).*cos...

Plotting a time series e^(-at) cosā”((bt) u_s (t)) for two cases, first for a=3 and b=50, then for a=-3 and b=50.

clc; clear ; a1=3; b1=50; a2 = -3; b2= 50; t = linspace(0,1) ; f1 = exp(-a1*t).*cos(b1*t) ; f2 = exp(-a2*t).*cos...

9 months ago | 0

Answered

How can i calculate max correlation and time delay between two signals?

REad about crosscorr.

How can i calculate max correlation and time delay between two signals?

REad about crosscorr.

9 months ago | 0

Answered

how to remove a particular season values from monthly time series?

thedates = (datetime(2003,1,1):days(30):datetime(2023,12,31))' ; idx = thedates.Month == 1 | thedates.Month == 2 | thedates.Mo...

how to remove a particular season values from monthly time series?

thedates = (datetime(2003,1,1):days(30):datetime(2023,12,31))' ; idx = thedates.Month == 1 | thedates.Month == 2 | thedates.Mo...

9 months ago | 1

Answered

Segment distance along path (imported from kml) using mapping toolbox

This should be useful for you: https://in.mathworks.com/matlabcentral/fileexchange/34874-interparc

Segment distance along path (imported from kml) using mapping toolbox

This should be useful for you: https://in.mathworks.com/matlabcentral/fileexchange/34874-interparc

9 months ago | 1

Answered

Randomly generated cubes in cylindrical volumes in MATLAB

% Draw cyliner Radius = 1. ; % Radius of the cylindrical shell Height = 2. ; % Height of the Cylinder % ...

Randomly generated cubes in cylindrical volumes in MATLAB

% Draw cyliner Radius = 1. ; % Radius of the cylindrical shell Height = 2. ; % Height of the Cylinder % ...

9 months ago | 1

| accepted

Answered

My graph isn't picking up my time increments. How can I fix it? My loop generates my x values, but I'm trying to graph them over time.

clear Ts=30; % ms Td=60; % ms Chs=.001; % L/mmhg Chd=.015; % L/mmhg N=800; % number of elements t=0:1:N ; % all time value...

My graph isn't picking up my time increments. How can I fix it? My loop generates my x values, but I'm trying to graph them over time.

clear Ts=30; % ms Td=60; % ms Chs=.001; % L/mmhg Chd=.015; % L/mmhg N=800; % number of elements t=0:1:N ; % all time value...

9 months ago | 0

| accepted

Answered

How to surface or mesh plot imported data?

Refer this link: https://in.mathworks.com/matlabcentral/answers/412639-creating-surface-plot-from-a-matrix-with-3-columns?s_tid=...

How to surface or mesh plot imported data?

Refer this link: https://in.mathworks.com/matlabcentral/answers/412639-creating-surface-plot-from-a-matrix-with-3-columns?s_tid=...

9 months ago | 0

Answered

Error using stem()...... X must be same length as Y.

I have given one wproper working code for unit step signal. Understand it and change the others like wise. t=-5:0.1:5; nt = ...

Error using stem()...... X must be same length as Y.

I have given one wproper working code for unit step signal. Understand it and change the others like wise. t=-5:0.1:5; nt = ...

9 months ago | 0

Answered

What command has replaced the old MATLAB command called clg?

clf

What command has replaced the old MATLAB command called clg?

clf

9 months ago | 0

| accepted

Answered

How to sorten the result value depicted on text area

REad about fprintf, sprintf

How to sorten the result value depicted on text area

REad about fprintf, sprintf

9 months ago | 0

Answered

Random Gaussian number generators

REad about randn function disorder = generate_disorder(L, W) % Generate a disordered sequence of on-site energies...

Random Gaussian number generators

REad about randn function disorder = generate_disorder(L, W) % Generate a disordered sequence of on-site energies...

9 months ago | 0

Answered

opening and viewing mat file having different snapshots /class : structure

Read about matfile. S = matfile('myfile.mat') ; You can access the variables of the matfile from S. If you want more specific ...

opening and viewing mat file having different snapshots /class : structure

Read about matfile. S = matfile('myfile.mat') ; You can access the variables of the matfile from S. If you want more specific ...

9 months ago | 0

Answered

Smallest mask enclosing a polygon

You need not to use a loop. If you want fine mask, increase the resolution. X = longitude; Y = latitude; [Y,X] = meshgrid(Y,X...

Smallest mask enclosing a polygon

You need not to use a loop. If you want fine mask, increase the resolution. X = longitude; Y = latitude; [Y,X] = meshgrid(Y,X...

10 months ago | 0

Answered

Error: Illegal use of reserved keyword "end".

Remove end in the code which is lying in the last.

Error: Illegal use of reserved keyword "end".

Remove end in the code which is lying in the last.

10 months ago | 0

Answered

How to generate scatter plot similar to attached scatter plot?

T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1458992/Test.csv') ; plotregression(T.(1),T.(2)) ...

How to generate scatter plot similar to attached scatter plot?

T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1458992/Test.csv') ; plotregression(T.(1),T.(2)) ...

10 months ago | 0

| accepted

Answered

Issues with splitting a matrix into many smaller matrix

You need to load the data from csv file into MATLAB first. T = readtable('https://in.mathworks.com/matlabcentral/answers/uploa...

Issues with splitting a matrix into many smaller matrix

You need to load the data from csv file into MATLAB first. T = readtable('https://in.mathworks.com/matlabcentral/answers/uploa...

10 months ago | 0

Answered

Plot Heatmap from distinct coordinates and data array of floats

It depends on your data whether it is structured or unstructured. Let x, y, z be your column data vectors. %%structured xi =...

Plot Heatmap from distinct coordinates and data array of floats

It depends on your data whether it is structured or unstructured. Let x, y, z be your column data vectors. %%structured xi =...

11 months ago | 0

| accepted

Answered

flipping a maximum point to become a minimum of the same size

You can chnage the sign right? plot(xup,-yup)

flipping a maximum point to become a minimum of the same size

You can chnage the sign right? plot(xup,-yup)

11 months ago | 0