답변 있음
How to run model form m-file and save final values
The 'Outport' will help you get the values in MATLAB Workspace. From there you can use it in your m-file. If you also want to sa...

10년 초과 전 | 1

| 수락됨

답변 있음
i have oscillating signal at scope in simulink, how i can get the average of this signal?
Well, I don't think there is a Mean block or Average block for this operation. What you can do is use an 'Outport'. This will ta...

10년 초과 전 | 0

답변 있음
How to pause execution of program until a keypress
the command 'pause'. It pauses the program until keypress.

10년 초과 전 | 4

답변 있음
How can we join two matrices of two dimmention
C = horzcat(A,B); If A and Bb are the two matrices.

10년 초과 전 | 0

답변 있음
How can I skip initial value on continuously updating closed loop system?
This should work. I hope so.

10년 초과 전 | 0

답변 있음
Importing Excel-Spreadsheet with columns of NaN
Use xlsread. [num,txt,raw] = xlsread('filename.xlsx'); and then check with 'isnan' to get the corresponding column name.

10년 초과 전 | 0

답변 있음
Suppoase I have a data set t=1: 100( 1 to 100) and I want to get x=sin(2*pi*7.5*10^5*t); how to do that using for loop
for t = 1 : 100 x(t) = sin(2*pi*7.5*10^5*t); end

10년 초과 전 | 0

답변 있음
how to check significance testing?
That's because your conditions are wrong. If z>=2*t, then that means you have already satisfied the condition t<=z. And so you a...

10년 초과 전 | 0

| 수락됨

답변 있음
How can I skip initial value on continuously updating closed loop system?
You can specify the initial condition or value as 1 or whatever value you want for the integrator block. Just double click the i...

10년 초과 전 | 0

답변 있음
once matlab is closed is there any way to edit the gui which was working previously.
You should open the guide file of your GUI and change the position there.

10년 초과 전 | 0

답변 있음
what is the parameter to be change to 2 or 3 line only in single graph?
Use 'hold on' or you can also use the plot command as plot(x1,y1,x2,y2,...)

10년 초과 전 | 0

문제를 풀었습니다


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

문제를 풀었습니다


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

10년 초과 전

문제를 풀었습니다


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

10년 초과 전

문제를 풀었습니다


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

10년 초과 전

문제를 풀었습니다


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

10년 초과 전

문제를 풀었습니다


radius of a spherical planet
you just measured its surface area, that is the input.

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


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

문제를 풀었습니다


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

10년 초과 전

문제를 풀었습니다


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

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

문제를 풀었습니다


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

답변 있음
License checkout failed - License Manager Error -4
http://www.mathworks.de/matlabcentral/answers/101313-why-do-i-receive-the-error-license-manager-error-4

10년 초과 전 | 0

답변 있음
When saving a figure with 'print', not all of the figure is saved
I am not so sure, but are you passing the handles of the plot or the axes? That may be one reason. Also, out of curosity what is...

10년 초과 전 | 0

답변 있음
Importing figure to MATLAB GUI using handles??
When you know the handles of the axes in the GUI, you can plot the data in it. Something like plot(handles.axes_1,x,y);

10년 초과 전 | 0

문제를 풀었습니다


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

10년 초과 전

문제를 풀었습니다


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

10년 초과 전

문제를 풀었습니다


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

10년 초과 전

더 보기