Amanda Beatty
Followers: 0 Following: 0
Feeds
질문
How to recover corrupted *.mat file data
I have 2 *.mat files that each have one table in them. MATLAB keeps telling me they both might be corrupt. I'm not sure why, but...
10개월 전 | 답변 수: 1 | 1
1
답변질문
How do I return to the twice above calling function?
I have some nested function calls, starting with a button pushed callback. I inherited the code so this is how it was setup prio...
거의 2년 전 | 답변 수: 1 | 0
1
답변질문
Can I change my UIFigure size while maintaining location of elements in figure?
I have a UIFigure that I want to be interactive. There is a dropdown menu, and depending on the number the user selects, new edi...
2년 초과 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are arranged in a spiral, the prime numbers contained in it form a sur...
2년 초과 전
문제를 풀었습니다
Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...
2년 초과 전
문제를 풀었습니다
How many trades represent all the profit?
Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...
2년 초과 전
문제를 풀었습니다
Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...
2년 초과 전
문제를 풀었습니다
Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...
2년 초과 전
문제를 풀었습니다
Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching through thi...
2년 초과 전
문제를 풀었습니다
Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...
2년 초과 전
문제를 풀었습니다
Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...
2년 초과 전
문제를 풀었습니다
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
2년 초과 전
문제를 풀었습니다
Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.
2년 초과 전
문제를 풀었습니다
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...
2년 초과 전
문제를 풀었습니다
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:...
2년 초과 전