已解决


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 years 前

已解决


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 years 前

已解决


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

11 years 前

已解决


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 years 前

已解决


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

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

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

11 years 前

已回答
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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 0

已回答
Realtime with Arduino Due
Hope this helps ! http://www.mathworks.in/matlabcentral/fileexchange/45071-simulink-support-package-for-arduino-due-hardware...

11 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前

已解决


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

13 years 前

加载更多