A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

A résolu


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

presque 11 ans il y a

Réponse apportée
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...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 11 ans il y a | 0

Réponse apportée
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

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 1

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

Réponse apportée
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...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
I have problem when i am simulating a pneumatic actuator circuit in simscape R2014a.
Can you post a snapshot of the model ? --sreeram mohan

environ 11 ans il y a | 0

Réponse apportée
Raise warning from simulink block mask initialization?
Hi Carlos, Can you try using evalin('base', 'warning(''message'')') to see if that helps ? --sreeram mohan

environ 11 ans il y a | 0

Réponse apportée
driver blocks for arduino
Hope the guide here should help you achieve what you need ! http://www.mathworks.com/matlabcentral/fileexchange/39354-device-...

environ 11 ans il y a | 0

Réponse apportée
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

environ 11 ans il y a | 0

Réponse apportée
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

environ 11 ans il y a | 0

Réponse apportée
Realtime with Arduino Due
Hope this helps ! http://www.mathworks.in/matlabcentral/fileexchange/45071-simulink-support-package-for-arduino-due-hardware...

environ 11 ans il y a | 0

Réponse apportée
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...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 12 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

A résolu


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

plus de 13 ans il y a

A résolu


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

plus de 13 ans il y a

Charger plus