문제를 풀었습니다


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년 전

문제를 풀었습니다


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

대략 11년 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

대략 11년 전

문제를 풀었습니다


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

대략 11년 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

대략 11년 전

문제를 풀었습니다


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

대략 11년 전

문제를 풀었습니다


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

대략 11년 전

답변 있음
How do I flow Block Annotation settings through a Configurable Subsystem?
Hi Bill, You could try something like this, I am not sure if this will work but worth a try : In the copyfcn call back of...

대략 11년 전 | 1

| 수락됨

답변 있음
how to delete empty cells and save in the text file
Look at a similar question being answered at the following thread http://www.mathworks.in/matlabcentral/answers/209-how-do-i...

11년 초과 전 | 0

답변 있음
Arduino Due and Simulink - DC motor control
Hi Parth, Did you try the PID example that ships with the support package for Arduino ? Thanks, Sreeram Mohan

11년 초과 전 | 0

답변 있음
is it possible to transfer data from microcontroller to simulink in matlab ?
Hi Hassan, Between the Microcontoller and MATLAB/SIMULINK one could use some hardware interfaces like the serial communicati...

11년 초과 전 | 0

답변 있음
How do i automatically rename blocks following to the subsystem name?
Hi Adrian, Here is a small pointer to the solution. %the following code below should return a list of the blocks in th...

11년 초과 전 | 1

답변 있음
Warning: Unexpected Warning: A timeout occurred before the Terminator was reached - Arduino
Hi Darryl, Suggestion 1: Did you try setting the timeout property of the serial to be of a higher value ? Just to make sure...

11년 초과 전 | 0

답변 있음
Serially communication between IMU(x-io Technologies) and MATLAB
Hi Ranjith, Looks like the X-IMU is pumping the data from the sensors out on a bluetooth. In MATLAB you could first check if...

11년 초과 전 | 0

답변 있음
find a string in a text file and to check particular character
Hi Vipin, Have you tried using strtok ? This might be more useful in the case you are dealing with. Thanks, Sreeram M...

11년 초과 전 | 0

답변 있음
How to read 500 readings from analog input block in 1 second in matlab ?
Hi Ahmed, Try using a tapped delay block or if you have access to signal processing toolboxes try using a buffer block and th...

11년 초과 전 | 0

답변 있음
How to Use an Image for background in XY Graph in Simulink
Hi Bharath, You could try the following. Look under the mask of the XY graph block by right clicking and then double cli...

11년 초과 전 | 0

답변 있음
Is there a way to call MATLAB from a Linux command line that would use a command line data file as input?
Try ./matlab -r "yourScript" and things should work as you expected ! Some examples method 1: ./matlab -nodesktop -nos...

11년 초과 전 | 0

| 수락됨

답변 있음
I have problem when i am simulating a pneumatic actuator circuit in simscape R2014a.
Can you post a snapshot of the model ? --sreeram mohan

11년 초과 전 | 0

답변 있음
Raise warning from simulink block mask initialization?
Hi Carlos, Can you try using evalin('base', 'warning(''message'')') to see if that helps ? --sreeram mohan

11년 초과 전 | 0

답변 있음
driver blocks for arduino
Hope the guide here should help you achieve what you need ! http://www.mathworks.com/matlabcentral/fileexchange/39354-device-...

11년 초과 전 | 0

답변 있음
Simulation Diagnostic Error: CRL: "None" cannot be found in the registry.
Can you post the model as well so that there is better insight ? --sreeram mohan

11년 초과 전 | 0

답변 있음
Can matlab read and write EEPROMs in atmel microcontroller on Arduino platform? Did anybody create library?
As far as I know the ability to write to EEPROM is not present as of now. --sreeram mohan

11년 초과 전 | 0

답변 있음
Realtime with Arduino Due
Hope this helps ! http://www.mathworks.in/matlabcentral/fileexchange/45071-simulink-support-package-for-arduino-due-hardware...

11년 초과 전 | 0

답변 있음
what is the script for highlight to source of a line when i know handle of a line.
model = 'your_model_name'; open_system(model); %Select the line whose source has to be traced port = get_param([model '/Ou...

12년 초과 전 | 1

| 수락됨

답변 있음
How do I modify the standard Arduino build process?
Hi Nathan , Just to get more info from your end . Do you have the coders installed meaning the Simulink Coder. That shoul...

12년 초과 전 | 0

답변 있음
Matlab, Arduino, and XBee: does it work?
I have tried this combination for one of my hobby projects. The only thing to take care would be to configure the xbee pair firs...

13년 초과 전 | 0

답변 있음
Arduino, ADXL 335 real time data aqu
Just to make it more clear . Yes a real time (with some delay of course caused by the serial communication) one can interface ad...

13년 초과 전 | 0

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

13년 초과 전

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

13년 초과 전

더 보기