解決済み


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年以上 前

さらに読み込む