Question

Why my model is not running properly on my raspberry pi ? (PIGPIO.h test)

Hi, I have build the attached model to run on the raspberry pi. The model contain a S-function builder to try the library PigP...

5 months ago | 0 answers | 0

Answered

"Error using matlabshared.internal.ssh2Client"

Same error message, my Pi is wiried to the host PC. After a couple of time working with tune & monitor. I just unplugged the eth...

"Error using matlabshared.internal.ssh2Client"

Same error message, my Pi is wiried to the host PC. After a couple of time working with tune & monitor. I just unplugged the eth...

5 months ago | 0

Question

What GPIO library is used for the RaspberryPi support package?

Simple question, is it uing a mathworks library? the Pigpio library? WiringPi?

5 months ago | 0 answers | 0

Question

How to upgrade Raspbian when used with MATLAB/Simulink? Will it create a compatibility issue?

I have my raspberry pi plugged with my ethernet cable. I would like to update/upgrade raspbian, to add additional features, such...

5 months ago | 0 answers | 0

Question

How to optimize code generation for Arduino Uno for Tune&Monitor?

(After few tries, I have updated the end of this post) I just adapted the following arduino Code to display the character 'A'...

5 months ago | 0 answers | 0

Question

What is the best way to use Arduino libraries to interface with the Raspberry pi ?

I have both Hardware support packages Arduino and Raspberry for simulink. There are plenty of libraries for the arduino framewor...

6 months ago | 0 answers | 0

Question

How to create a hovering effect on images in the App creator

when using the app designer, We can use images that have callback when clicking the image. Is there any property to modify t...

6 months ago | 1 answer | 0

Answered

How to use convertTDMS script and what is the most efficient file format to post-process data in MATLAB?

You can use this instead: https://uk.mathworks.com/matlabcentral/fileexchange/44206-converttdms-v10 the function TDMS_getStruct...

How to use convertTDMS script and what is the most efficient file format to post-process data in MATLAB?

You can use this instead: https://uk.mathworks.com/matlabcentral/fileexchange/44206-converttdms-v10 the function TDMS_getStruct...

6 months ago | 0

Answered

How to interpolate data

interp1 inputs must be real number (look at the section input arguments from the help.). Thus remove the NaN values from the inp...

How to interpolate data

interp1 inputs must be real number (look at the section input arguments from the help.). Thus remove the NaN values from the inp...

6 months ago | 0

| accepted

Answered

How to interpolate data

Input Arguments collapse all x — Sample points vector Sample points, specified as a row or column vector of real numbers. Th...

How to interpolate data

Input Arguments collapse all x — Sample points vector Sample points, specified as a row or column vector of real numbers. Th...

6 months ago | 0

Answered

lenend keep only text

dummyh_1= line(nan, nan, 'Linestyle', 'none', 'Marker', 'none', 'Color', 'none');hold on dummyh_2= line(nan, nan, 'Linestyle', ...

lenend keep only text

dummyh_1= line(nan, nan, 'Linestyle', 'none', 'Marker', 'none', 'Color', 'none');hold on dummyh_2= line(nan, nan, 'Linestyle', ...

6 months ago | 0

Answered

Read .txt file , Truss optimization

The issue is not in your code, but in your text file, line 71: 12 01 .2.50 2.0 10.0 10.0 Must be converted to : 12 01...

Read .txt file , Truss optimization

The issue is not in your code, but in your text file, line 71: 12 01 .2.50 2.0 10.0 10.0 Must be converted to : 12 01...

6 months ago | 1

| accepted

Answered

how do i set drawrectangle to have a specific increment only?

you can set the property "Position" of an existing rectangle: A=drawrectangle; %draw a rectangle A.Position=[0.5 0.2 0.35 0.2]...

how do i set drawrectangle to have a specific increment only?

you can set the property "Position" of an existing rectangle: A=drawrectangle; %draw a rectangle A.Position=[0.5 0.2 0.35 0.2]...

6 months ago | 0

Question

Support Package for Raspberry Pi (R2020a) - does it support the CM4 ?

Maybe a trivial question, the support package seems to support the Pi4, but I am just wondering if it support the Pi CM4?

6 months ago | 1 answer | 0

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

7 months ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

7 months ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

7 months ago

Answered

How do I perform a clean re-installation of a Support Package?

Can you please provide details on how to do a clean re-install of a unique support package without deleting the other installed?...

How do I perform a clean re-installation of a Support Package?

Can you please provide details on how to do a clean re-install of a unique support package without deleting the other installed?...

7 months ago | 0

Solved

Write a code that will follow the equation y = x * (x + x) * x.

If x = 5, y = 5 * (5+5) * 5 = 250

7 months ago

Solved

Volume of a box

Given a box with a length a, width b, and height c. Solve the volume of the box.

7 months ago

Solved

Matlab Basics II - squares

Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

7 months ago

Solved

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

7 months ago

Solved

Find the maximum number of decimal places in a set of numbers

Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

7 months ago

Solved

Make roundn function

Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

7 months ago

Solved

Rounding off numbers to n decimals

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

7 months ago

Solved

Matlab Basics - Rounding III

Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

7 months ago

Solved

Matlab Basics - Rounding II

Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

7 months ago

Solved

Check that number is whole number

Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

7 months ago

Solved

MATLAB Basic: rounding IV

Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

7 months ago