
Python, C, MATLAB
Statistics
RANK
357
of 277,826
REPUTATION
210
CONTRIBUTIONS
3 Questions
73 Answers
ANSWER ACCEPTANCE
66.67%
VOTES RECEIVED
16
RANK
of 18,798
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
1 Public Channel
AVERAGE RATING
30
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Problem
Given a string s, find the length of the longest substring without repeating characters.
Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" O...
2 months ago | 1 | 6 solvers
Solved
Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...
2 months ago
Solved
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
2 months ago
please help me in plotting this c++ data (which is in txt file) in matlab.i have attached that file
% Read the data from the file data = dlmread('Mass_tcm.txt'); % Extract the parameter and target variable values from the da...
2 months ago | 1
Wrong start of the curve in double integral
n = 0.1 ; t = 1; r = 1; s = 0:0.01:1; b=sqrt(2*t)/r; fun = @(x,z,k) exp(-2.*n.*t.*x.^2).*exp(-z.^2).*(erf(((z+x.*k./r)./(2....
4 months ago | 0
| accepted
How do I remove quotes from all values in a CSV data?
data = csvread('myfile.csv'); data = strrep(data, '"', '');
5 months ago | 0
What is the meaning of the following expression
This expression appears to be assigning a value to an element in an array. The array is called FirstBand and it is being indexe...
6 months ago | 0
Add simscape blocks programmatically
Can you try this way by using gcb https://in.mathworks.com/matlabcentral/answers/93613-why-do-i-receive-error-when-using-add_...
6 months ago | 0
How to delete multiple of the Value in Array
A = [1 2 3 4 5 6 7 8 9 10] % Initial array A(mod(A,3) == 0) = [] % Delete elements that are multiples of 3
6 months ago | 0
| accepted
How to convert data into a Rainflow histogram/table
% Sample time-history data with 3600 values data = rand(1,3600); % Convert the raw data into rainflow cycles [cycles,mn,mx]...
6 months ago | 0
MATLAB error handling of SIMULINK (sim) due to external component
https://www.mathworks.com/help/simulink/slref/tofile.html One way to handle this problem is to use the "To File" block in Simul...
6 months ago | 1
| accepted
How to draw tangent plot?
t = 0:0.01:2*pi; y = tan(t); plot(t,y) xlabel('x') ylabel('y=tan') axis([0 2*pi -5 5]) % set the x-axis to go from 0 to 2*p...
6 months ago | 0
how to plot a multidimensional matrix in matlab
% Create dummy temperature data with size p-by-p-by-p p = 10; T = rand(p,p,p); % Create x, y, and z data for the temperatur...
6 months ago | 0
how to take every fifth frame and then subtract it from the previous frame and then do the concatenation
In MATLAB, you can use the opticalFlow function to compute the optical flow between two consecutive frames of a video. This func...
6 months ago | 0
Matlab Coder error : converting datetime Format error
Can you try this once d1 = datestr(datetime, 'yyyymmdd')
6 months ago | 0
Battery SOC Using voltage Method
To estimate the battery state of charge (SOC) using the voltage method in MATLAB, you can use the following steps: Measure the ...
6 months ago | 1
| accepted
Sensitivity study in cftool
To perform a sensitivity study of solved coefficients in the cftool app, you can follow these steps: Open the cftool app and lo...
6 months ago | 0
Simulated height of Faraday waves remains constant
To modify the code to correctly simulate the time-varying nature of Faraday waves, you will need to update the surface height ...
6 months ago | 0
| accepted
Merge nx3 double matrices present within a 3x1 cell
a=randi(100,157,2); b=randi(200,189,2); c=randi(300,183,2); mat={a;b;c}; for i=1:size(mat,1) if i==1 aaa(i)={[...
6 months ago | 0
| accepted
Bin data into equally spaced intervals
% Import data from Excel sheet data = xlsread('data.xlsx'); % Preallocate array for binned data binned_data = zeros(24,1); ...
6 months ago | 0
| accepted
how to download pdf files from website?
system('wget -r -A.pdf https://smallpdf.com/blog/sample-pdf')
6 months ago | 0
How to have different threshold for different images?
In general, the threshold used in edge detection algorithms plays a critical role in determining the quality of the detected edg...
6 months ago | 0
| accepted
N dimensional multiplication on gpu arrays
It is possible to improve the performance of the code you have provided by using the built-in element-wise multiplication operat...
6 months ago | 2
| accepted
Feature importance of a polynomial function
To calculate the importance of each feature in the equation you provided, you can use the coefficients of the equation to determ...
6 months ago | 0
How can I generate a pseudo random column vector V
% Define the minimum and maximum values of L L_min = 10; L_max = 100; % Generate a random integer value for L within the de...
6 months ago | 0
| accepted
i want to get bex(j), bin(j) as gex(i), gin(i), how to do that and insert another for loop inside that code
Rmin = 1e5 Rmax = 1e6 Gmin = 1.0/Rmax Gmax = 1.0/Rmin X = table2array(in_mn) y=w{1} b= w{2} %nitialize gex and gin to ...
6 months ago | 0
| accepted
How do I get the names of all the enumerations in a class?
have you tried this? https://in.mathworks.com/help/matlab/ref/enumeration.html enumeration WeekDays
6 months ago | 1
| accepted
Error using dbscan. Expected X to be nonempty
Error You are getting Expected X to be nonempty Because of variable interpts is empty. and it is empty because it is neve...
6 months ago | 1
| accepted
Question
Command Window output weird on Mac OS
I am using Matlab 2021b on Mac OS and command window seems to be centre aligned its looking weird any way to fix it properly lik...
7 months ago | 1 answer | 0
1
answerHow to crop out the edge tick marks on graph image?
Is this what you are looking for @Trong Link , Removing Tickdir? t=0:0.01:1; f=1; x=sin(2*pi*f*t); figure(1); plot(t,x)...
7 months ago | 0