Programming Languages:
MATLAB
MATLAB
Feeds
已回答
how to process multiple video files from a folder
files = dir('C:\Video_file\*.avi')
how to process multiple video files from a folder
files = dir('C:\Video_file\*.avi')
1 year 前 | 1
已回答
determine within cell the coordinates (rows/columns) having equal 3 numbers
I have taken dummy data instead of random inorder to get right co-ordinates, please let me know if you wanted to get same co-ord...
determine within cell the coordinates (rows/columns) having equal 3 numbers
I have taken dummy data instead of random inorder to get right co-ordinates, please let me know if you wanted to get same co-ord...
1 year 前 | 0
已回答
how to include symbol on plot line into the legend?
Is this what you are looking for using this symbol '<' ? n = 2000; IPA5a = [linspace(0, 2*pi, n)' sin(linspace(0, 2*pi, n)...
how to include symbol on plot line into the legend?
Is this what you are looking for using this symbol '<' ? n = 2000; IPA5a = [linspace(0, 2*pi, n)' sin(linspace(0, 2*pi, n)...
1 year 前 | 0
已回答
How to put legend in subplot automaticaly using for end?
For legend location as per image above you will need lcoation as northeast and northwest for more information you can refer ...
How to put legend in subplot automaticaly using for end?
For legend location as per image above you will need lcoation as northeast and northwest for more information you can refer ...
1 year 前 | 0
| 已接受
已回答
Importing .dat data and creating a matrix
% Constants START_ROW_OFFSET = 5; END_ROW_OFFSET = 13; START_COL = 11; END_COL = 21; % Read data data = re...
Importing .dat data and creating a matrix
% Constants START_ROW_OFFSET = 5; END_ROW_OFFSET = 13; START_COL = 11; END_COL = 21; % Read data data = re...
1 year 前 | 1
| 已接受
已回答
Make array with elements repeating as many times as specified in another list.
a{1} = [1, 2, 4]; a{2} = [5, 3, 8, 9]; a{3} = [2, 6, 3, 7, 8, 1]; tic % Vector of sequence of 1s, 2s etc. y_val = []; for ...
Make array with elements repeating as many times as specified in another list.
a{1} = [1, 2, 4]; a{2} = [5, 3, 8, 9]; a{3} = [2, 6, 3, 7, 8, 1]; tic % Vector of sequence of 1s, 2s etc. y_val = []; for ...
1 year 前 | 1
已回答
why is this code not running?
% Time array (24 hours) TimeValue = 1:24; % random data SolarDispatch = 80 + 5*randn(1, 24); WindDispatch = 50 + 6*randn(1...
why is this code not running?
% Time array (24 hours) TimeValue = 1:24; % random data SolarDispatch = 80 + 5*randn(1, 24); WindDispatch = 50 + 6*randn(1...
1 year 前 | 0
已回答
Simulink.findBlocks error The first input must be a system name or handle.
As it shows Error using Simulink.findBlocks The first input must be a system (name or handle). So it is basically asking for ...
Simulink.findBlocks error The first input must be a system name or handle.
As it shows Error using Simulink.findBlocks The first input must be a system (name or handle). So it is basically asking for ...
1 year 前 | 0
已回答
Writing cells into a .dat file?
Let me know if this is what you wanted and if anything is not clear in load('files.mat') numRows = size(files, 1); concatena...
Writing cells into a .dat file?
Let me know if this is what you wanted and if anything is not clear in load('files.mat') numRows = size(files, 1); concatena...
1 year 前 | 1
| 已接受
已回答
adding textbox to plot - text doesnt stay in one line
It is happening because its creating seprate cells. you can modify like below : txt = {'Primary energy factors:','Biomass = ' ...
adding textbox to plot - text doesnt stay in one line
It is happening because its creating seprate cells. you can modify like below : txt = {'Primary energy factors:','Biomass = ' ...
1 year 前 | 0
已回答
Splitting arrays using loops
I have already answered you same apart from making mean value as new array. here is how you can do it. A = reshape(1:64, [8,8])...
Splitting arrays using loops
I have already answered you same apart from making mean value as new array. here is how you can do it. A = reshape(1:64, [8,8])...
1 year 前 | 1
| 已接受
已回答
how to split an 8x8 2D array
Is this what you are looking for? % Sample 8x8 array A = reshape(1:64, [8,8]) % Splitting into 4x4 arrays A1 = A(1:4, 1:4)...
how to split an 8x8 2D array
Is this what you are looking for? % Sample 8x8 array A = reshape(1:64, [8,8]) % Splitting into 4x4 arrays A1 = A(1:4, 1:4)...
1 year 前 | 2
| 已接受
已回答
Why is my code producing a 0's at the 11th Column
Looking at pe(j), i think your J loop should run for length of pe, is this what you are expecting? z1 = 1; z1 = 2; z2 = 2*z1;...
Why is my code producing a 0's at the 11th Column
Looking at pe(j), i think your J loop should run for length of pe, is this what you are expecting? z1 = 1; z1 = 2; z2 = 2*z1;...
1 year 前 | 0
已回答
find common timestamp of two different matrix
% Load Mat file in Base Workspace load("data.mat") % Convert the timestamps to strings, including only up to the minute Tem...
find common timestamp of two different matrix
% Load Mat file in Base Workspace load("data.mat") % Convert the timestamps to strings, including only up to the minute Tem...
1 year 前 | 0
| 已接受
问题
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...
1 year 前 | 1 | 12 个解题者
已解决
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...
1 year 前
已解决
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 ...
1 year 前
已回答
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...
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...
1 year 前 | 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....
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....
2 years 前 | 0
| 已接受
已回答
How do I remove quotes from all values in a CSV data?
data = csvread('myfile.csv'); data = strrep(data, '"', '');
How do I remove quotes from all values in a CSV data?
data = csvread('myfile.csv'); data = strrep(data, '"', '');
2 years 前 | 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...
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...
2 years 前 | 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_...
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_...
2 years 前 | 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
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
2 years 前 | 0
| 已接受
已回答
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]...
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]...
2 years 前 | 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...
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...
2 years 前 | 1
| 已接受
已回答
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...
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...
2 years 前 | 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...
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...
2 years 前 | 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...
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...
2 years 前 | 0
已回答
Matlab Coder error : converting datetime Format error
Can you try this once d1 = datestr(datetime, 'yyyymmdd')
Matlab Coder error : converting datetime Format error
Can you try this once d1 = datestr(datetime, 'yyyymmdd')
2 years 前 | 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 ...
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 ...
2 years 前 | 1
| 已接受