A résolu


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

plus de 4 ans il y a

A résolu


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

plus de 4 ans il y a

A résolu


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

plus de 4 ans il y a

A résolu


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

plus de 4 ans il y a

A résolu


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

plus de 4 ans il y a

A résolu


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

plus de 4 ans il y a

A résolu


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

plus de 4 ans il y a

A résolu


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

plus de 4 ans il y a

A résolu


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

plus de 4 ans il y a

A résolu


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

plus de 4 ans il y a

A résolu


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

Question


Can matlab coder generate C code more intelligently based on human language expressions?
According to my recent incomplete understanding, similar code generation tools are becoming more and more intelligent, such as d...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


matlab coder generation mex verification failed?
When I use matlab coder app to generate C code from my matlab code, I first start to verify if mex is runnable, but this step di...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


The PreserveArrayDimensions property in coder.EmbeddedCodeConfig is only valid for the first entry function in multiple entry functions?
When I set PreserveArrayDimensions to true, only the first of the multiple C entry function interfaces generated retains the arr...

plus de 4 ans il y a | 1 réponse | 0

0

réponse

Question


"arguments ... end" syntax input argument validation module group supports C code generation?
The latest version of Matlab Coder does not seem to support the use of "arguments...end" module in functions. If so, I don't hav...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
What is missing from MATLAB #2 - the next decade edition
"matlab coder" toolbox can't produce only one C/C++ file, refer to: 1、How can I set up "matlab coder" to produce fewer C/C++ f...

plus de 4 ans il y a | 0

Réponse apportée
Regarding single .c and .h file generation in embedded coder code generation
@Juili Bhirud Unfortunately, TMW does not provide a way to generate a unique c file from these files simliar issue: https://a...

plus de 4 ans il y a | 0

Question


How can simulink coder/embedded coder generate multiple entry point functions?
Similar to matlab coder can specify multiple entry functions for C code generation at the same time, but how to generate multipl...

plus de 4 ans il y a | 1 réponse | 0

0

réponse

Question


How can matlab coder be configured to generate only one c file?
My problem is this: similarly, I can generate only one model.c and model.h file in simulink coder by setting the "File packaging...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


matlab function block Used for C code generation Error?
matlab function block Used for C code generation with "Only one inport and one outport can share the same parameter name." Error...

plus de 4 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
How to rotate a rectangle
I recommend you to use 'polyshape' for rotating rectangles, there are many object functions that can meet your requirements. r...

plus de 4 ans il y a | 0

Réponse apportée
How to crop a square that has a rotational angle?
I wrote an enhanced 'imcrop' function that supports rotating rectangle interception, but yours is an irregular quadrilateral, bu...

plus de 4 ans il y a | 1

Réponse apportée
'Cropping' image from a rotatable drawrectangle ROI
I've written an enhanced 'imcrop' function that supports rotated rectangle interception, which would satisfy your case please s...

plus de 4 ans il y a | 0

Question


Synchronize matlab software personality settings across platforms?
You can synchronize the individual settings of each platform matlab software while logged into your account, such as synchronizi...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


Matlab function block Does not support 'fopen' code generation?
I wrote a simple write binary file function with 'fopen' function for C code generation, but it is not supported in MATLAB funct...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


Are there examples of deploying deep learning specifically for TI TDA4vm soc embedded devices using matlab coder and embedded coder toolboxes?
As far as I am not fully aware, the current official list of hardware models supported by texas instruments C2000 processors is ...

plus de 4 ans il y a | 1 réponse | 0

0

réponse

Question


Doesn't addpath support adding multiple folder paths at the same time?
For example, I have 2 paths of the same level of brothers, how can I add them to the matlab search path by command addpath? pat...

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Charger plus