문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

거의 8년 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

거의 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년 전

질문


Independent XTickLabel and YTickLabel font sizes
Is it possible to set the font size of y-tick marks independently of the font size of the x-tick marks, ylabel and xlabel? W...

거의 8년 전 | 답변 수: 1 | 1

1

답변

답변 있음
How to input and operate matrices using loop?
Concatenate all of your matrices to create a 3D array C and index the 3rd dimension using your loop variable i.e. C(:,:,1) would...

대략 8년 전 | 0

답변 있음
How do I use a for loop to read rows of a matrix?
block_size = 801; vals = zeros(3,1); for n = 1:5 data = xlsread(['file', num2str(n), '.xlsx']); for m = 1:3 vals(...

대략 8년 전 | 0

답변 있음
How to identify the distribution of the data set?
Plot the histogram. Use 'hist'. Depending on the number of samples in the data set, you will want to increase the number of bins...

대략 8년 전 | 0

| 수락됨

질문


what is the difference between dir and ls
Is there a difference between dir and ls?

대략 8년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Hi, is there any way, I can save a random binary data after generating it?any suggestion would be appreciated! thank you
Did you try the save command? a = [1 0 0 1 0 0 1 1 1 ]; save('my_data', 'a');

8년 초과 전 | 0

| 수락됨

질문


Gausswin sampling interval?
How does the gausswin function determine which points to sample on the Gaussian curve?

8년 초과 전 | 답변 수: 0 | 0

0

답변

문제를 풀었습니다


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년 초과 전

문제를 풀었습니다


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

8년 초과 전

문제를 풀었습니다


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

8년 초과 전

문제를 풀었습니다


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 ...

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년 초과 전

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

8년 초과 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

8년 초과 전

문제를 풀었습니다


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 ...

8년 초과 전

문제를 풀었습니다


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:...

8년 초과 전

문제를 풀었습니다


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...

8년 초과 전

문제를 풀었습니다


Get all corner elements from a matrix where dimension of matrix is always equal to or greater than 2.
if a given matrix a = [1 2 3;4 5 6]; so answer is going to be [1 3;4 6]

8년 초과 전

질문


Where to find a complete list of supported class names for 'set' command?
I am trying to configure some default figure parameters in my startup.m file, however I can not find some of the appropriate cla...

8년 초과 전 | 답변 수: 2 | 1

2

답변

질문


Append varying length vectors to csv file using dlmwrite
I am attempting to append data to columns of a csv file using dlmwrite. Is there a way to remove the row offset that the functio...

거의 9년 전 | 답변 수: 1 | 0

1

답변

질문


Exponentiation of Matrix Columns by different Powers
Given an MxN matrix A and a 1xN vector b, is there a concise way to raise each column of A to a corresponding power of the vecto...

대략 9년 전 | 답변 수: 2 | 0

2

답변

질문


How to set axis scaling?
What is the figure property name for setting the axis scaling? I would like to set 'axis tight' as the default, but I can not se...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to return files with a specific extension using 'dir'?
The command dir *.bmp will print to the command window the names of all files in the current directory ending with the...

거의 10년 전 | 답변 수: 2 | 3

2

답변

질문


How is the fundamental frequency computed using the fit function with a fourier model?
How is the term 'w' computed using the 'fit' function of the Curve Fitting Toolbox when using the fourier model option?

대략 10년 전 | 답변 수: 0 | 1

0

답변