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

etwa 10 Jahre vor | 1

| akzeptiert

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

etwa 10 Jahre vor | 0

Beantwortet
How to pause execution of program until a keypress
the command 'pause'. It pauses the program until keypress.

etwa 10 Jahre vor | 4

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

etwa 10 Jahre vor | 0

Beantwortet
How can I skip initial value on continuously updating closed loop system?
This should work. I hope so.

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

Beantwortet
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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

| akzeptiert

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

Beantwortet
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,...)

etwa 10 Jahre vor | 0

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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]

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

Gelöst


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

etwa 10 Jahre vor

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

Beantwortet
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);

mehr als 10 Jahre vor | 0

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Gelöst


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

mehr als 10 Jahre vor

Mehr laden