Beantwortet
Plotting a cartesian equation with an imaginary component of 0*1i
c = 4+1i*0 ; plot(real(c),imag(c),'*r')

6 Monate vor | 0

| akzeptiert

Beantwortet
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)...

6 Monate vor | 0

Beantwortet
Interpolate MATLAB geoscatter/geoplot data to estimate average wind speeds in the Gulf of Mexico?
REad about scatteredInterpolant, griddata.

6 Monate vor | 0

Beantwortet
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...

6 Monate vor | 0

Beantwortet
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...

6 Monate vor | 0

Beantwortet
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')

6 Monate vor | 0

Beantwortet
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.

6 Monate vor | 0

Beantwortet
Select images from a folder based on their similarity.
Read about ssim.

7 Monate vor | 0

| akzeptiert

Beantwortet
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...

7 Monate vor | 0

Beantwortet
How can i calculate max correlation and time delay between two signals?
REad about crosscorr.

7 Monate vor | 0

Beantwortet
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...

7 Monate vor | 1

Beantwortet
Segment distance along path (imported from kml) using mapping toolbox
This should be useful for you: https://in.mathworks.com/matlabcentral/fileexchange/34874-interparc

7 Monate vor | 1

Beantwortet
Randomly generated cubes in cylindrical volumes in MATLAB
% Draw cyliner Radius = 1. ; % Radius of the cylindrical shell Height = 2. ; % Height of the Cylinder % ...

7 Monate vor | 1

| akzeptiert

Beantwortet
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...

7 Monate vor | 0

| akzeptiert

Beantwortet
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=...

7 Monate vor | 0

Beantwortet
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 = ...

7 Monate vor | 0

Beantwortet
What command has replaced the old MATLAB command called clg?
clf

7 Monate vor | 0

| akzeptiert

Beantwortet
How to sorten the result value depicted on text area
REad about fprintf, sprintf

7 Monate vor | 0

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

7 Monate vor | 0

Beantwortet
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 ...

7 Monate vor | 0

Beantwortet
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...

8 Monate vor | 0

Beantwortet
Error: Illegal use of reserved keyword "end".
Remove end in the code which is lying in the last.

8 Monate vor | 0

Beantwortet
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)) ...

8 Monate vor | 0

| akzeptiert

Beantwortet
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...

8 Monate vor | 0

Beantwortet
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 =...

9 Monate vor | 0

| akzeptiert

Beantwortet
flipping a maximum point to become a minimum of the same size
You can chnage the sign right? plot(xup,-yup)

9 Monate vor | 0

Beantwortet
Find the velocity of a travelling wave like behaviour
I will suggest to use the function InterX. N = 1000 ; x = linspace(0,200,N) ; y = rand(size(x)) ; L1 = [x;y] ; L2 = [...

9 Monate vor | 0

Beantwortet
cropping netcdf files using geo-coordinates
Why don't you use interp2. Let X, Y and Z be your original data. Xi, Yi is your coordinates for which you want to crop/ extrac...

9 Monate vor | 0

Beantwortet
Why the given codes give errors for vector bounds but runs well for scalar bounds?
Use this function instead of your bbo3. function [BestX,fmin]=bbo3(obj,dim,lb,ub,iter,pop1) %% Problem Definition CostFunc...

9 Monate vor | 0

| akzeptiert

Beantwortet
Not able to figure out the way to deal with large vectors
n=-10:1:10; c1 = 0 ; c2 = 0 ; E = zeros([],1) ; O = zeros([],1) ; for i = 1:length(n) %% Get your x(n) if mod(x(...

9 Monate vor | 0

Mehr laden