답변 있음
how to extract data in the structure to individual vector variable?
This should be pretty straight forward. You can do this: %Assuming a structure name of Structure Time=Structure.time; ...

거의 10년 전 | 0

답변 있음
how to create a half cosine wave
If you are talking about plotting a half cosine wave you could do something like this: t=-pi/2:0.0001:pi/2; plot(t,cos(t...

거의 10년 전 | 0

| 수락됨

답변 있음
Please help me to find the solution for this non linear system of equation
I would recommend that you read MathWorks documentation as it is very helpful. Here is a link where they show you how to solve a...

거의 10년 전 | 0

답변 있음
Script for plotting two graphs on the same window
I think what you are looking for is the hold command. Your code should look something like this: hold on %by setting ...

거의 10년 전 | 0

답변 있음
Using loops to populate a vector
If you really need to use a for loop, this is how you could do it. for i=1:size(A,1) B(i,1)=A(i,1); end However, ...

거의 10년 전 | 0

| 수락됨

답변 있음
i want to create a array structure using one,zero,eye
D=[3*eye(3),[2*ones(2);zeros(1,2)]] You can do it in one line as seen here.

거의 10년 전 | 1

| 수락됨

답변 있음
negative angle between vectors / planes
In order to determine if the angle between two vectors is positive or not, there would have to be a reference normal plane vecto...

거의 10년 전 | 0

| 수락됨

답변 있음
is this toolbox really available in MATLAB?
If you are talking about the SDF toolbox in your picture, this is not a toolbox offered by MathWorks as verified on their Produc...

거의 10년 전 | 0

| 수락됨

문제를 풀었습니다


Distance a ball travels after throwing vertically
Calculate the total distance *'d'* (in meters) a ball would travel after *'s'* seconds and starting velocity of *'v'* (in m/s). ...

거의 10년 전

문제를 풀었습니다


Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

거의 10년 전

문제를 풀었습니다


Polynomial Evaluation
Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...

거의 10년 전

문제를 풀었습니다


Replace secondary diagonal elements of a square array
Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

거의 10년 전

문제를 풀었습니다


Find the Area of a Polygon
Consider 2-D geometry and assume that the points are given in form of rows of a matrix. Find the area of polygon enclosed by the...

거의 10년 전

문제를 풀었습니다


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

거의 10년 전

문제를 풀었습니다


prime to each other
Given two integers n1, n2 greater than 1, find out if they have common divisors or are prime to each other. Return "true" if the...

거의 10년 전

문제를 풀었습니다


Step up
For given input array, output a array with all elements step up by two

거의 10년 전

문제를 풀었습니다


What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...

대략 10년 전

문제를 풀었습니다


Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?

대략 10년 전

문제를 풀었습니다


For a given linear index as input for n sized square matrix, find corresponding row and column.
If input is 1, the row and column will be 1 and 1 respectively.

대략 10년 전

문제를 풀었습니다


Back to Basics - Find no. of elements in a matrix?
Let A be a m*n matrix. Find the total no. of elements in A ? (Hint - formula based) A = [1 2 3;4 5 6]; output = 6

대략 10년 전

문제를 풀었습니다


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

대략 10년 전

문제를 풀었습니다


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

대략 10년 전

문제를 풀었습니다


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

대략 10년 전

문제를 풀었습니다


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

대략 10년 전

문제를 풀었습니다


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

대략 10년 전

문제를 풀었습니다


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

대략 10년 전

문제를 풀었습니다


the number of inputs
Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

대략 10년 전

문제를 풀었습니다


Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...

대략 10년 전

문제를 풀었습니다


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

대략 10년 전

문제를 풀었습니다


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

대략 10년 전

더 보기