Feeds
문제를 풀었습니다
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 ...
거의 11년 전
답변 있음
How to obtain phase shift in simulink
If you double click on sine block, you will see time (t) under parameters. You can select it to use external signal and in exter...
How to obtain phase shift in simulink
If you double click on sine block, you will see time (t) under parameters. You can select it to use external signal and in exter...
거의 11년 전 | 0
답변 있음
I want to read a data from the sinusoidal signal at a certain time t
Hi Shiva, first you need to change sample time from 4.85 to -1 again in your simout (To workspace block). Now see, your simout t...
I want to read a data from the sinusoidal signal at a certain time t
Hi Shiva, first you need to change sample time from 4.85 to -1 again in your simout (To workspace block). Now see, your simout t...
거의 11년 전 | 0
| 수락됨
문제를 풀었습니다
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...
거의 11년 전
문제를 풀었습니다
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 = ...
거의 11년 전
답변 있음
Implement equation and solve variable
syms L ENOB=input('ENOB '); R=input('R '); B=input('B '); solve(ENOB - (log2 (((2^B)*((2^L+1)^(1/2))*R^(L+0.5))/pi^L))) ...
Implement equation and solve variable
syms L ENOB=input('ENOB '); R=input('R '); B=input('B '); solve(ENOB - (log2 (((2^B)*((2^L+1)^(1/2))*R^(L+0.5))/pi^L))) ...
거의 11년 전 | 0
| 수락됨
답변 있음
How to change the variable name in the loop
You should edit your code using {}code while posting the question, I can see one problem, there should not be *to* after *for* ,...
How to change the variable name in the loop
You should edit your code using {}code while posting the question, I can see one problem, there should not be *to* after *for* ,...
거의 11년 전 | 0
| 수락됨
답변 있음
Check to see if this is correct.
There's no problem with the code, its fine. Just include a=input('a= ') ; x=input('x= '); after function and on the ...
Check to see if this is correct.
There's no problem with the code, its fine. Just include a=input('a= ') ; x=input('x= '); after function and on the ...
거의 11년 전 | 0
답변 있음
Command stem for the mass spring damper system
You can simply do stem(step(sys)) you can read the documentation about it. there is nice explanation about the command....
Command stem for the mass spring damper system
You can simply do stem(step(sys)) you can read the documentation about it. there is nice explanation about the command....
거의 11년 전 | 0
답변 있음
Does anyone have model for induction motor characteristic using simulink ?
<http://www.mathworks.de/matlabcentral/fileexchange/index?utf8=%25E2%259C%2593&term=induction+motor Induction motors> you will g...
Does anyone have model for induction motor characteristic using simulink ?
<http://www.mathworks.de/matlabcentral/fileexchange/index?utf8=%25E2%259C%2593&term=induction+motor Induction motors> you will g...
거의 11년 전 | 0
답변 있음
calculation of successive diffrence
B = diff(A); B(find((B==2))=B(find(B==2)+1)+2
calculation of successive diffrence
B = diff(A); B(find((B==2))=B(find(B==2)+1)+2
거의 11년 전 | 0
답변 있음
reshape a matrix with a divisible of 10....
Try this, its very simple- n=10-mod(numel(A),10); if n==10; reshape(A,10,numel(A)/10) else A=padarray(A,[0,n],'...
reshape a matrix with a divisible of 10....
Try this, its very simple- n=10-mod(numel(A),10); if n==10; reshape(A,10,numel(A)/10) else A=padarray(A,[0,n],'...
거의 11년 전 | 1
문제를 풀었습니다
Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...
거의 11년 전
문제를 풀었습니다
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...
거의 11년 전
문제를 풀었습니다
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
거의 11년 전
답변 있음
How do I create a square matrix based on user input?
One simple way for this can be, Suppose you have square matrix of order n. So you have n^2 elements. You can enter all the eleme...
How do I create a square matrix based on user input?
One simple way for this can be, Suppose you have square matrix of order n. So you have n^2 elements. You can enter all the eleme...
거의 11년 전 | 2
문제를 풀었습니다
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".
거의 11년 전
문제를 풀었습니다
Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...
거의 11년 전
문제를 풀었습니다
Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...
거의 11년 전
문제를 풀었습니다
sum of non-primes
The sum of the non-primes below 10 is 1+4+6+8+9+10=38 Find the sum of all the non-primes below the input, N.
거의 11년 전
문제를 풀었습니다
Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...
거의 11년 전
문제를 풀었습니다
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...
거의 11년 전
답변 있음
covert matlab program to simulink block
You can use *MATLAB Function*. Go through this- <http://www.mathworks.de/de/help/simulink/slref/matlabfunction.html?searchHighli...
covert matlab program to simulink block
You can use *MATLAB Function*. Go through this- <http://www.mathworks.de/de/help/simulink/slref/matlabfunction.html?searchHighli...
거의 11년 전 | 1
| 수락됨
답변 있음
How can i transfer a data on a floating scope from simulink model into a figure plot in matlab ?
Suppose your saved your signal with the name 'x', you can use simplot(x) You will get the desired plot. Regards
How can i transfer a data on a floating scope from simulink model into a figure plot in matlab ?
Suppose your saved your signal with the name 'x', you can use simplot(x) You will get the desired plot. Regards
거의 11년 전 | 1
| 수락됨
문제를 풀었습니다
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
거의 11년 전
문제를 풀었습니다
Slicing the cube
A bored matlab enthusiast has a cube with volume n^3. He decides to paint the entire surface of the cube red. Then, with slices...
거의 11년 전
문제를 풀었습니다
Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...
거의 11년 전