Réponse apportée
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...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
How to pause execution of program until a keypress
the command 'pause'. It pauses the program until keypress.

presque 12 ans il y a | 4

Réponse apportée
How can we join two matrices of two dimmention
C = horzcat(A,B); If A and Bb are the two matrices.

presque 12 ans il y a | 0

Réponse apportée
How can I skip initial value on continuously updating closed loop system?
This should work. I hope so.

presque 12 ans il y a | 0

Réponse apportée
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.

presque 12 ans il y a | 0

Réponse apportée
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

presque 12 ans il y a | 0

Réponse apportée
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...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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.

presque 12 ans il y a | 0

Réponse apportée
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,...)

presque 12 ans il y a | 0

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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]

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

A résolu


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

presque 12 ans il y a

Réponse apportée
License checkout failed - License Manager Error -4
http://www.mathworks.de/matlabcentral/answers/101313-why-do-i-receive-the-error-license-manager-error-4

presque 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 0

Réponse apportée
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);

environ 12 ans il y a | 0

A résolu


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

environ 12 ans il y a

A résolu


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

environ 12 ans il y a

A résolu


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

environ 12 ans il y a

Charger plus