Feeds
답변 있음
import a certain text file .txt from a specific folder
You can try the fullfile function. Something like this should work: folder = 'C:\Users\Alberto\....'; % folder where the .txt ...
import a certain text file .txt from a specific folder
You can try the fullfile function. Something like this should work: folder = 'C:\Users\Alberto\....'; % folder where the .txt ...
거의 2년 전 | 0
| 수락됨
문제를 풀었습니다
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
2년 초과 전
답변 있음
Link Axes in App Designer
You can use the linkaxes command like this: plot(app.UIAxes,rand(100,1)); plot(app.UIAxes2,rand(100,1)); li...
Link Axes in App Designer
You can use the linkaxes command like this: plot(app.UIAxes,rand(100,1)); plot(app.UIAxes2,rand(100,1)); li...
2년 초과 전 | 0
답변 있음
Convert MATLAB internal function to Python
What about generating a Python Package from your MATLAB function? https://www.mathworks.com/help/compiler_sdk/gs/create-a-pytho...
Convert MATLAB internal function to Python
What about generating a Python Package from your MATLAB function? https://www.mathworks.com/help/compiler_sdk/gs/create-a-pytho...
2년 초과 전 | 0
답변 있음
How to programmatically modify substructure with arbitrary number of levels?
If I understand correctly, all you need is to use the setfield command, for example: modified_struct = setfield(original_struct...
How to programmatically modify substructure with arbitrary number of levels?
If I understand correctly, all you need is to use the setfield command, for example: modified_struct = setfield(original_struct...
2년 초과 전 | 0
답변 있음
How would you loop through a vector and create new vectors (groups) based the condition of similar values per index
Something like this should work. nums = [1 2 3 1 3 3 1 2 2 3 2 1 3]; groups...
How would you loop through a vector and create new vectors (groups) based the condition of similar values per index
Something like this should work. nums = [1 2 3 1 3 3 1 2 2 3 2 1 3]; groups...
2년 초과 전 | 0
| 수락됨
문제를 풀었습니다
Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...
4년 초과 전
문제를 풀었습니다
Draw 'E'
Draw a x-by-x matrix 'E' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...
4년 초과 전
문제를 풀었습니다
Draw 'D'.
Draw a x-by-x matrix 'D' using 0 and 1. example: x=4 ans= [1 1 1 0 1 0 0 1 1 0 0 1 1 1 1 0]
4년 초과 전
문제를 풀었습니다
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
6년 초과 전
문제를 풀었습니다
How to subtract?
*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...
대략 7년 전
제출됨
Simscape Language Equations, Pretty Print
MATLAB code for displaying Simscape language equations in a format that is easy to read.
대략 8년 전 | 다운로드 수: 1 |
문제를 풀었습니다
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:...
거의 9년 전
문제를 풀었습니다
Make a half wave rectifier
Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...
거의 9년 전
문제를 풀었습니다
Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...
거의 9년 전
문제를 풀었습니다
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. Example...
거의 10년 전
문제를 풀었습니다
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...
거의 10년 전
문제를 풀었습니다
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...
거의 10년 전
문제를 풀었습니다
Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...
거의 10년 전
답변 있음
hai, i want to know in which version of simscape pneumatic system tool box is available.Currently i am using R2009a it is not available
Hi, the pneumatic library has been introduced in release R2009b. Regards Jean-Baptiste
hai, i want to know in which version of simscape pneumatic system tool box is available.Currently i am using R2009a it is not available
Hi, the pneumatic library has been introduced in release R2009b. Regards Jean-Baptiste
10년 초과 전 | 0
문제를 풀었습니다
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 + ...
거의 11년 전
문제를 풀었습니다
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.
거의 11년 전
문제를 풀었습니다
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...
대략 11년 전
문제를 풀었습니다
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...
대략 11년 전
문제를 풀었습니다
Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.
11년 초과 전
문제를 풀었습니다
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
11년 초과 전
문제를 풀었습니다
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...
11년 초과 전
문제를 풀었습니다
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...
거의 12년 전
문제를 풀었습니다
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...
거의 12년 전