Feeds
답변 있음
Split matrix across the median
a = rand(5,10); b = repmat(median(a,1),10); c1 = a; c1(a<b) = NaN; c2 = a; c2(a>=b) = NaN; .... what you're lookin...
Split matrix across the median
a = rand(5,10); b = repmat(median(a,1),10); c1 = a; c1(a<b) = NaN; c2 = a; c2(a>=b) = NaN; .... what you're lookin...
11년 초과 전 | 0
답변 있음
Loading multiple files into the same database
In semi-pseudo code below My_array = []; % container for all file contents for i = 1:size(Name_File_Array) fid = fope...
Loading multiple files into the same database
In semi-pseudo code below My_array = []; % container for all file contents for i = 1:size(Name_File_Array) fid = fope...
11년 초과 전 | 0
답변 있음
Convert an acceleration time graph, into a velocity time graph.
I'm not sure its a matlab issue as such but you'd need to know the starting velocity at least. If we assume its zero, then I thi...
Convert an acceleration time graph, into a velocity time graph.
I'm not sure its a matlab issue as such but you'd need to know the starting velocity at least. If we assume its zero, then I thi...
11년 초과 전 | 0
| 수락됨
답변 있음
Loading multiple files into the same database
Hi Bob Can you read the contents of all files into matlab in loop, vertically concatenating the cellarrays and perform a sing...
Loading multiple files into the same database
Hi Bob Can you read the contents of all files into matlab in loop, vertically concatenating the cellarrays and perform a sing...
11년 초과 전 | 0
답변 있음
from cell array to numeric vector
MWDIData_pop(1,1:5) = {[3752373],[3876616],[4006236],[4140773],[4279524]}; % square brackets in a cellarray indicates that t...
from cell array to numeric vector
MWDIData_pop(1,1:5) = {[3752373],[3876616],[4006236],[4140773],[4279524]}; % square brackets in a cellarray indicates that t...
11년 초과 전 | 2
| 수락됨
답변 있음
from cell array to numeric vector
yearCellArray = {'2008';'2009';'2010'}; yearVector = cellfun(@str2double,yearCellArray);
from cell array to numeric vector
yearCellArray = {'2008';'2009';'2010'}; yearVector = cellfun(@str2double,yearCellArray);
11년 초과 전 | 1
답변 있음
How to vectorize a find
a temporary vector of row numbers, then use your vector-of-interest & a logicsl statement to index this row-number vector ...
How to vectorize a find
a temporary vector of row numbers, then use your vector-of-interest & a logicsl statement to index this row-number vector ...
11년 초과 전 | 0
답변 있음
How can we achieve interfacing of two GUI's?
if you just put the name of gui2 inside the callback of the pushbutton of gui1, then gui2 does not open? gui1_mybutton_...
How can we achieve interfacing of two GUI's?
if you just put the name of gui2 inside the callback of the pushbutton of gui1, then gui2 does not open? gui1_mybutton_...
11년 초과 전 | 0
답변 있음
How to store matrix values in a vector?
Hi Peter Finding it a little difficult to totally grasp what you want to do e.g. m is a 3d matrix & not a 2d one, right? M...
How to store matrix values in a vector?
Hi Peter Finding it a little difficult to totally grasp what you want to do e.g. m is a 3d matrix & not a 2d one, right? M...
11년 초과 전 | 0
| 수락됨
답변 있음
memory leak using activex to save multiple excel files
are you not closing the workbooks?
memory leak using activex to save multiple excel files
are you not closing the workbooks?
11년 초과 전 | 0
문제를 풀었습니다
Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...
거의 12년 전
문제를 풀었습니다
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
거의 12년 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
거의 12년 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
거의 12년 전
문제를 풀었습니다
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
거의 12년 전
문제를 풀었습니다
Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
거의 12년 전
문제를 풀었습니다
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 ...
거의 12년 전
문제를 풀었습니다
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...
거의 12년 전
문제를 풀었습니다
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...
거의 12년 전
문제를 풀었습니다
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...
거의 12년 전
문제를 풀었습니다
Reverse the Words (not letters) of a String
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...
거의 12년 전
답변 있음
remove numbers from a name
welcome to the frustrating world of regular expressions!! regexp(name,'[a-z]\w+','match') all the best, Mark
remove numbers from a name
welcome to the frustrating world of regular expressions!! regexp(name,'[a-z]\w+','match') all the best, Mark
거의 12년 전 | 2
답변 있음
Vectorize double loops with constraints on the indexes
Hi Anne-Claire I can make some progress in the vectorization here (code below) but there are a few issues. 1) The r=max(k-...
Vectorize double loops with constraints on the indexes
Hi Anne-Claire I can make some progress in the vectorization here (code below) but there are a few issues. 1) The r=max(k-...
거의 12년 전 | 0
답변 있음
How to overcome the error message in the script below -Matrix dimension error - due to different size array manipulation
Hi Jan The error I get is ??? Index exceeds matrix dimensions. Since PT_mj is a [3*4] matrix and we are trying to...
How to overcome the error message in the script below -Matrix dimension error - due to different size array manipulation
Hi Jan The error I get is ??? Index exceeds matrix dimensions. Since PT_mj is a [3*4] matrix and we are trying to...
거의 12년 전 | 0