Community Profile

photo

Chunru


Last seen: Today

DSO National Laboratories

406 2013 이후 총 참여 횟수

Matlab user since 1990

연락

Chunru's 배지

  • MATLAB Central Treasure Hunt Finisher
  • Knowledgeable Level 3
  • First Answer
  • Indexing I Master
  • Commenter
  • Sequences And Series II Master
  • Speed Demon
  • Creator
  • Sequences And Series I Master
  • Cody Challenge Master
  • Introduction to MATLAB Master
  • CUP Challenge Master
  • Strings I Master
  • Project Euler I
  • Community Group Solver

모두 보기

참여 게시물
보기 기준

해결됨


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

39분 전

해결됨


Matrix multiplication across rows
Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

42분 전

해결됨


A matrix of extroverts
Now that the introverts have had their script, the extroverts spoke up (naturally!) and demanded one as well. You will be given...

44분 전

해결됨


Convert matrix to 3D array of triangular matrices
Given a 2D numeric array x in which each column represents the vectorized form of an upper triangular matrix, return a 3D array ...

약 1시간 전

답변 있음
Running the Same code for Multiple Files in a Folder
Here is a schetch of the solution: fn = dir('a*.txt'); % obtain the file information 'a*.txt'. make your own modification for...

약 1시간 전 | 0

답변 있음
issue when creating and saving file to specific folder
When dataFolder is a variable, change directory with the following statement: cd(dataFolder) ;

약 2시간 전 | 1

해결됨


Too Many Zeros, Dump Them!
Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

약 4시간 전

해결됨


Enlarge array
Given an m-by-n numeric array (A) and a 1-by-2 vector (sz) indicating the dimensions [p q] to enlarge each element, return an (m...

약 4시간 전

해결됨


Remove entire row and column in the matrix containing the input values
Remove the entire row and column from the matrix containing specific values. The specified value can be a scalar or a vector. Fo...

약 4시간 전

해결됨


frame of the matrix
Given the matrix M, return M without the external frame.

약 4시간 전

해결됨


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

약 4시간 전

답변 있음
Bellhop: index exceeds the number of array elements (0)
Check the quotation marks. AcousticToolbox input use the single quote " ' " for input. 260.0 1502.43 / ’A’ 0.0 260.0 1600....

약 7시간 전 | 0

답변 있음
How to vertically combine two matrices with a space in-between them?
You can insert one row of NaN. An array or matrix must be filled with numbers and cannot have blanks (unless you use strings). ...

약 18시간 전 | 0

| 수락됨

답변 있음
Code to solve integral with cosine and theta
integrate it manually integrate it symbolically syms x f(x) = cos(x).^2 int(f(x), 0, pi/2) integrate it numerically x = li...

약 18시간 전 | 0

| 수락됨

답변 있음
Extracting elements from one matrix and placing in another
The following will do. i = [7 10 34 52 79 82 88 94 100 115] %posi SLP_top_10 = yearly_array2(:,:,i);

약 18시간 전 | 0

| 수락됨

해결됨


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

1일 전

해결됨


Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

1일 전

답변 있음
How does division "/" = work for integer types?
MATLAB rounds the results when dividing integer data types. That is to say: uint32(1) /uint32(2) = round(1/2) = round(0.5) =1 ...

1일 전 | 0

답변 있음
Simple for Loop calculation help MATLAB!
Using loop (for integer number of years): P0 = 1000; r = 0.05; y = 3; P = P0; % initialization for i=1:y P = P0*...

1일 전 | 0

| 수락됨

답변 있음
Plotting multiple images in subplot with reducing subplot distance and make title inside the each subplot images
Use tiledlayout to control the gaps. You can use text(x,y, 'title') to place text anywhere. % loose' (default) | 'compact' | '...

2일 전 | 0

답변 있음
how to south outside text
bar(rand(5,2)); % some plot legend('A', 'B', 'Location', 'southoutside'); % legend can be placed southout...

2일 전 | 0

답변 있음
Why do I get an error message when I questdlg function
Add the default button (last argument) to be one of the specified buttons: answer1 = questdlg('Strained Method?', ... 'Option...

2일 전 | 0

| 수락됨

해결됨


Evil Number
Check if a given natural number is evil or not. Read more at <https://oeis.org/A001969 OEIS>.

3일 전

해결됨


N-th Odious
Given index n return n-th <https://oeis.org/A000069 odious number>.

3일 전

해결됨


Find the 9's Complement
Find the 9's complement of the given number. An example of how this works is <http://electrical4u.com/9s-complement-and-10s-c...

3일 전

해결됨


Write c^3 as sum of two squares a^2+b^2
write c^3 as sum of two squares a^2+b^2. a and b must be integer and greater than zero. For example 5^3 = 2^2 + 11^2 5...

4일 전

해결됨


Predicting life and death of a memory-less light bulb
*&#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &...

4일 전

해결됨


A Simple Tide Gauge with MATLAB
*&#8767 &#8767 &#8767 &#8767 &#8767 &#8767 &#8767 &#8767* You are standing in a few inches of sea water on a beach. You a...

4일 전

해결됨


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

4일 전

해결됨


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

4일 전

Load more