Pierre845
Followers: 0 Following: 0
Feeds
답변 있음
How can I fix this code to calculate the running average of my data without using toolbox methods such as movmean or smooth?
function avg = running_avg(signal, avg_window) avg = zeros(1, length(signal); for i = avg_window:lengt...
How can I fix this code to calculate the running average of my data without using toolbox methods such as movmean or smooth?
function avg = running_avg(signal, avg_window) avg = zeros(1, length(signal); for i = avg_window:lengt...
대략 6년 전 | 0
| 수락됨
답변 있음
How to convert [2x1 double] for [1x2 double]?
You need to transpose the result. if X is your result, do X = X';
How to convert [2x1 double] for [1x2 double]?
You need to transpose the result. if X is your result, do X = X';
대략 6년 전 | 1
| 수락됨
답변 있음
sum of a vector with non zero elements of matrix without using loop
You can do: R = repmat(M, 5, 1); Q = (T+R).*T;
sum of a vector with non zero elements of matrix without using loop
You can do: R = repmat(M, 5, 1); Q = (T+R).*T;
6년 초과 전 | 1
| 수락됨
문제를 풀었습니다
Calculate a modified Levenshtein distance between two strings
Inspired by the Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-distance-b...
6년 초과 전
문제를 풀었습니다
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
6년 초과 전
답변 있음
Are there any good matlab applications for 3D FEM tetrahedron mesh refinement?
Type 'mesh' in the File Exchange section? I think there are a few which is luxury .. your turn to try them and find the one you ...
Are there any good matlab applications for 3D FEM tetrahedron mesh refinement?
Type 'mesh' in the File Exchange section? I think there are a few which is luxury .. your turn to try them and find the one you ...
6년 초과 전 | 0
답변 있음
how to do terrain correction to gravity data in Matlab
Not sure what you're after here .. you got a matlab file and don't know how to use it? well post the code for broader interest a...
how to do terrain correction to gravity data in Matlab
Not sure what you're after here .. you got a matlab file and don't know how to use it? well post the code for broader interest a...
6년 초과 전 | 1
| 수락됨
답변 있음
analyse accelerometer and gyroscope data
Hello Katrina; What you're trying to do has got multiple steps, some easier than others. First to need to upload the data ...
analyse accelerometer and gyroscope data
Hello Katrina; What you're trying to do has got multiple steps, some easier than others. First to need to upload the data ...
6년 초과 전 | 0
| 수락됨
답변 있음
How do I plot several averages at once?
Hello, First you need to work out how to transform your text data into a matrix; for that purpose use either csvread, dlmrea...
How do I plot several averages at once?
Hello, First you need to work out how to transform your text data into a matrix; for that purpose use either csvread, dlmrea...
6년 초과 전 | 0
답변 있음
how to build an if statement beyond the conditions
Not sure why you cannot find a solution, it's fairly basic use of a loop. Do first a if .. then .. end using the matrix Q ...
how to build an if statement beyond the conditions
Not sure why you cannot find a solution, it's fairly basic use of a loop. Do first a if .. then .. end using the matrix Q ...
6년 초과 전 | 0
답변 있음
If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. Write a function called number2letters that returns the number of letters needed to write down the number n in
Do a Switch .. Case it will be much cleaner. Also, your function cannot work as you need conditional statements (if .. elseif...
If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. Write a function called number2letters that returns the number of letters needed to write down the number n in
Do a Switch .. Case it will be much cleaner. Also, your function cannot work as you need conditional statements (if .. elseif...
6년 초과 전 | 0
문제를 풀었습니다
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
6년 초과 전
답변 있음
Plot a surface over a circular domain of given radius using the plot function
If you've got the coordinates of the primary surface X,Y,Z You can create your cylinder surface which you will get the coordi...
Plot a surface over a circular domain of given radius using the plot function
If you've got the coordinates of the primary surface X,Y,Z You can create your cylinder surface which you will get the coordi...
6년 초과 전 | 1
답변 있음
How to plotone single 3D vector in MATLAB
A 3D vector has got 3 coordinates for Point 1, and 3 coordinates for Point 2. Point1(x1,y1,z1) Point2(x2,y2,z2) Take X = [x...
How to plotone single 3D vector in MATLAB
A 3D vector has got 3 coordinates for Point 1, and 3 coordinates for Point 2. Point1(x1,y1,z1) Point2(x2,y2,z2) Take X = [x...
6년 초과 전 | 0
| 수락됨
답변 있음
convert multiple .txt into .mat in same folder
You need to load the text files first, by making a loop on the file names and using textscan (or dlmread) in the loop to load ea...
convert multiple .txt into .mat in same folder
You need to load the text files first, by making a loop on the file names and using textscan (or dlmread) in the loop to load ea...
6년 초과 전 | 0
| 수락됨