답변 있음
Help Defining Variable Contained Within Summation Notation, and Using this Variable for Plot
Hello, you could use nested for loop. But i envision this running into an "Out of memory" problem sheerly based on the length of...

대략 4년 전 | 0

| 수락됨

답변 있음
How to create a scalar set of values
Hello, using arrayfun could be more efficient: % Taking your vector, say "P" to compute real "v_real" using "arrayfun". "arrayf...

대략 4년 전 | 0

답변 있음
A problem with using generalized code
Hello, the problem stems from the value of your column index; "4". You should be indexing column "5" instead on line 4 of the la...

대략 4년 전 | 1

| 수락됨

답변 있음
Multiple selection of an array
Hello, based on the indexing used in your question, i think something like this could do: % Assuming your matrix or vector to b...

대략 4년 전 | 1

| 수락됨

답변 있음
Pre allocation in matlab
leng=length(v); % length of a vector pA=zeros(1,leng); % pre-allocation with zeros

대략 4년 전 | 0

답변 있음
Eliminate the table inside a cell, if any NaN exists inside that table.
Hello, cellfun should do nicely CL=cellfun(@(x) any(isfinite(x.precip)),NewC2LatLon); CSelect=NewC2LatLon(CL); % Final cell ar...

대략 4년 전 | 1

| 수락됨

답변 있음
Box plots for Kruskal-Wallis
Hello, when the end point of a notch is lower than the 25th quartile of your data, that folding effect will occur. This effect i...

대략 4년 전 | 0

| 수락됨

답변 있음
Differentiation of the position vector.
Hello, you could make use of the symbolic math toolbox. The page below should get you started: https://mathworks.com/help/symbo...

대략 4년 전 | 0

| 수락됨

답변 있음
how to write a programme in matlab comparing USA states name with english alphabets, and give the unmatch letter Q as a output.. ?
you could use regexp. Refer to the link below: https://mathworks.com/help/matlab/ref/regexp.html

대략 4년 전 | 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...

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

답변 있음
Select columns from a table and add them into another table
Hello, you don't need to use "groupsummary" or "vertcat" for this. Instead use; "addvars". I think this should do nicely: % Ta...

대략 4년 전 | 1

| 수락됨

답변 있음
hello, how to make a program of aggregate blending in matlab?
Hello, this might require quite some work. But to get you started, you need to first import your gradation data for different ag...

대략 4년 전 | 0

| 수락됨

답변 있음
Calculating average and standard deviation for element correction factor from excel file
Hello, this should do nicely; % Assuming your spreadsheet file is in the current (working) Matlab folder optns=detectImportOpt...

대략 4년 전 | 0

| 수락됨

답변 있음
Create new matrix with compine values
Hello, this should do nicely using a 3D-cell array: a = [0 0 1; 1 0 0; 1 0 1]; b = [1 0 1; 1 1 1;1 1 1]; c= [0 0 0 ; 1 0 0...

대략 4년 전 | 0

문제를 풀었습니다


Without the French accent please!
Suppress the French accent. Example 'Déjà présent' -> 'Deja present'

대략 4년 전

문제를 풀었습니다


Ordinal numbers
Given an integer n, return the corresponding ordinal number as a character string. For example, ord(1)='1st' ord(2)=...

대략 4년 전

문제를 풀었습니다


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

대략 4년 전

문제를 풀었습니다


Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifmq zpv...

대략 4년 전

문제를 풀었습니다


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

대략 4년 전

문제를 풀었습니다


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

대략 4년 전

문제를 풀었습니다


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

대략 4년 전

문제를 풀었습니다


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

대략 4년 전

문제를 풀었습니다


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

대략 4년 전

문제를 풀었습니다


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

문제를 풀었습니다


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

문제를 풀었습니다


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

대략 4년 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

대략 4년 전

더 보기