문제를 풀었습니다


merge two matrices together in one matrix
a= [1 2 3 4]; b=[5 6 7 8]; take the first column from matrix (a)and (b)then insert them in matrix (c) respectively, and so on;...

대략 8년 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

10년 초과 전

문제를 풀었습니다


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

10년 초과 전

문제를 풀었습니다


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

답변 있음
Change bode frequency units with idfrd data
Thank you for your answer, I think it was a version problem, I was using 2007b.

11년 초과 전 | 0

질문


Change bode frequency units with idfrd data
Hello, I have a problem to change the frequency units of my bode plot. I am using the function iddata in order to convert th...

거의 12년 전 | 답변 수: 2 | 0

2

답변

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

답변 있음
How to add Simulink icon to our own GUI.
Hello, Create a pushbutton associated with a Callback function. In the Callback, use the "simulink" command, it will call ...

거의 13년 전 | 0

답변 있음
Detect Simulation end with MATLAB
I found my answer : get_param('sys','SimulationStatus') It gives 'running' or 'stopped'.

거의 13년 전 | 5

| 수락됨

질문


Detect Simulation end with MATLAB
Hello, I would like to know if it is possible to know when a Simulink model is done running. I am using a M-file to load a...

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

1

답변

답변 있음
set_param and callback argument
Thank you for your reply. I am able to use set_param if the startfcn does not have any argument. I would like to know how to do...

대략 13년 전 | 0

질문


set_param and callback argument
Hello, I have a syntax question. I would like to use the set_param function to define a callback Startfcn of a simulink bloc...

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

2

답변

질문


Select wanted range xlsread
Hello, Using xlsread(filename,-1), I am able to select and get the data of an excel file. Is there a way to get the sheet ...

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

1

답변

질문


Get selected range in Excel file using MATLAB
Hello, I have seen a MATLAB GUI program that is able to open the Excel file and get the range of the cells that the user have...

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

1

답변

답변 있음
GUI scroll inside a panel
Thank you for your answer. I am using the 2007b version but I tried on 2010a and it was the same bug. My OS is Vista SP2, I will...

거의 14년 전 | 0

질문


GUI scroll inside a panel
Hello, I am trying to create a scroll bar in order to scroll elements which are inside a panel. I have one main panel with a s...

거의 14년 전 | 답변 수: 3 | 0

3

답변