Feeds
已回答
how to collect variables in an aray in for loop?
Hi You have two ways to address your problem you can either use a separate variable or you use same variable with which you a...
how to collect variables in an aray in for loop?
Hi You have two ways to address your problem you can either use a separate variable or you use same variable with which you a...
6 years 前 | 1
| 已接受
已解决
Alternately upper-lower case
Modify the string to alternate between upper and lower case. For example, s='achyuta' output='AcHyUtA'
6 years 前
已解决
Make a low pass filter
Make a first order low pass filter that will filter out the high frequency oscillations for the given input signal. The cut-off ...
6 years 前
已解决
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
6 years 前
已解决
Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...
7 years 前
已回答
Finding Line Source and Destination Port and Blocks
Hello Please see the image for the relevance of source port and Dst port. The code is perfectly fine. The problem lies in the...
Finding Line Source and Destination Port and Blocks
Hello Please see the image for the relevance of source port and Dst port. The code is perfectly fine. The problem lies in the...
7 years 前 | 0
已解决
most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...
7 years 前
已解决
How many digits are there?
Input(s) - any string Output(n) - number of digits within string s
7 years 前
已解决
Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...
7 years 前
已解决
Concatenate strings
concatenate a variable number of input strings to produce one outputstring
7 years 前
已回答
How to replace a simulink block name which is used in many places inside the model?
Hello This can be done using a few lines of matlab script. I have done for DataStoreRead blocks, you can extend this logic fo...
How to replace a simulink block name which is used in many places inside the model?
Hello This can be done using a few lines of matlab script. I have done for DataStoreRead blocks, you can extend this logic fo...
7 years 前 | 1
| 已接受
已回答
here is my codes and erors, I don't know what this erors mean ?
Hello This means idx was never equal to 1 and 'Current_time_actual_load' is still an unknown variable. Try giving a default v...
here is my codes and erors, I don't know what this erors mean ?
Hello This means idx was never equal to 1 and 'Current_time_actual_load' is still an unknown variable. Try giving a default v...
7 years 前 | 0
| 已接受
已解决
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
7 years 前
已解决
Reverse the Words (not letters) of a String
*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...
7 years 前
已解决
Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...
7 years 前
已解决
Model a falling body
An object is falling freely from a height of 22 meters under the force of gravity. <<http://blogs.mathworks.com/images/seth/c...
7 years 前
已解决
Produce a sine wave
Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>
7 years 前
已解决
Make a full wave rectifier
Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...
7 years 前
已解决
Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...
7 years 前
已解决
Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...
7 years 前
已解决
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
7 years 前
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
8 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
8 years 前
已解决
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
8 years 前