回答済み
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年以上 前

さらに読み込む