統計
All
Feeds
質問
Write one year date into a excel?
If I want to write one year date into a excel, like year 2016. I have no idea how to code in matlab. Thanks 1/1/2016 1/2...
8年以上 前 | 1 件の回答 | 0
1
回答質問
Combine the subplot into a one plot
I have a for-loop, in each loop, it will draw a plot. How can I combine those each plot in a big plot? I mean how to combine ...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How to insert a 50% image into this original image
I have a image, then I get 50% of this image, how to I insert this 50% image to the original image? Steganalysis
8年以上 前 | 1 件の回答 | 0
1
回答質問
How to get 1% of the image?
After I load a image, how do we get the 1% of the image?
8年以上 前 | 1 件の回答 | 0
1
回答質問
LSB watermark and LSB replacement difference?
Is those two are the same concept or any relationship between them? I search online and could not find any useful information. T...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How to solve override writing file problem?
I have try-catch in my code, when I catch the error, I write the error information to a file, but it always override the previou...
8年以上 前 | 1 件の回答 | 0
1
回答質問
!!!Very challenge - copy one row to following two row
I have a excel file, in row 11, I have some headers. A11 is Date, B11 is Time, C11-G11 is P1 to P5. Starts row 12, there are da...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How to write error information into a file
For the following code, if we catch a error, how do I do so that the error information('Inconsistent data in iteration %s, skipp...
8年以上 前 | 1 件の回答 | 0
1
回答質問
Count another directory subfolder
Now I am in a script under "C:\User\Jason\MATLAB". In this script, I want to count how many subfolder in another directory 'C:\U...
8年以上 前 | 1 件の回答 | 0
1
回答質問
How to skip error and continue to execute the code
I have a for loop, but when I faced the following error, my script will stop executing. How can I do to skip the error and conti...
8年以上 前 | 2 件の回答 | 0
2
回答解決済み
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
8年以上 前
質問
Whether ADD SEMICOLON for output will reduce execution time?
If my code compute data for 1 day. If I ADD SEMICOLON after the statements, means nothing display in Command Windows, does this ...
8年以上 前 | 1 件の回答 | 0
1
回答質問
Copy file to a new folder
Under a folder, I have a lot of .mat. "19800101.mat", "19800102.mat", ......."19800201.mat", "19800202.mat", ......"19801201.mat...
8年以上 前 | 3 件の回答 | 0
3
回答質問
Write 10 excel for loop
Now I have one original.xlsx, I want to write Data in Sheet1 from E1. xlswrite('Original.xlsx',Data,'Sheet1','E1') How d...
8年以上 前 | 2 件の回答 | 0
2
回答質問
Reduce computing time of these code
The following code takes 98.5% computing time of a script. Is there any code can be rewritten to improve time efficiency? [...
8年以上 前 | 0 件の回答 | 0
0
回答質問
How to count how many sub folders under a folder
In a folder, there are many sub folder, how do we count how many sub folder they are?
8年以上 前 | 2 件の回答 | 0
2
回答解決済み
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
8年以上 前
解決済み
Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...
8年以上 前
解決済み
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
8年以上 前
解決済み
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
8年以上 前
解決済み
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
8年以上 前
解決済み
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
8年以上 前
解決済み
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
8年以上 前
解決済み
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...
8年以上 前
解決済み
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
8年以上 前
解決済み
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
8年以上 前
解決済み
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 ...
8年以上 前
解決済み
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...
8年以上 前
解決済み
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...
8年以上 前