Community Profile

# Karl

Active since 2023

All

#### Content Feed

View by

How to extract numerator and denominator coeficients from polynomial function to array
You can extract a vector of the coefficients of a symbolic polynomial using sym2poly(): % Create example symbolic polynomial. ...

2 days ago | 1

| accepted

How do I start when coding a MIMO system?
I haven't used it, but the following looks like a good resource for simulating multiple-input multiple-output (MIMO) systems: M...

9 days ago | 0

| accepted

For a repeated eigenvalue only one eigenvctor is being returned
Another approach, which gives the additional eigenvector that you calculated, is to obtain the eigenvector(s), x, for eigenvalue...

30 days ago | 0

| accepted

Solved

Area Conversion 1

1 month ago

python environment on matlab
The error message indicates a failure in the call to sys.path. There are some hints on troubleshooting this type of failure at:...

1 month ago | 0

Solved

Ordinal numbers
Given an integer n, return the corresponding ordinal number as a character string. For example, ord(1)='1st' ord(2)=...

1 month ago

Solved

Temperature Conversion 1

1 month ago

Solved

Průměr z výběrového souboru
Napište funkci, která vrátí průměr z hodnot vektoru data. Např data = [1, 2, 3, 4, 5, 6, 7, 8, 9] je prumer = 5.

1 month ago

Source code for trainPointPillarsObjectDetector
You should be able to find the path to the source code using the which function: which('trainPointPillarsObjectDetector.m') On...

1 month ago | 0

| accepted

Image Approximation (imshow) trouble -- I believe I'm doing Image Compression??
The code below builds on code given by Torsten in relation to a related question: https://mathworks.com/matlabcentral/answers/2...

2 months ago | 0

How to do a rank-1 approximation?
You can check the display format that's set, and change if necessary: % Show the current display format. display(format) % Se...

2 months ago | 1

| accepted

How to Get Grey Matter Volume of Specific Brain Regions in SPM/MATLAB?
Summarising from the comments, if 'roi.nii' is a NIfTI file containing a binary mask representing a region of interest (ROI), an...

2 months ago | 1

| accepted

Check code compatibility with older releases
Mathworks Support Team has suggested codeCompatibilityReport to check compatibility with MATLAB R2017b and newer: https://mathw...

2 months ago | 0

Solved

Energy Conversion 2

2 months ago

Solved

Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...

2 months ago

Solved

Resistance of a light bulb
The current through two identical light bulbs connected in series is C Amperes. The total voltage across both bulbs is V Volts....

3 months ago

Solved

Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.

3 months ago

Solved

Electrical Diode Current Calculation
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...

3 months ago

Solved

An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

3 months ago

Solved

"Low : High - Low : High - Turn around " -- Create a subindices vector
Let two vectors *lo* and *hi* be given. The job is to create a index vector like so idx = [lo(1):hi(1) lo(2):hi(2) ...]...

3 months ago

Finance program (New edit)
In the for loop, I think that you need to change delta_base(n) to D_Base(n) and delta_variabili_aleatorie(n) to D_Var(n). This ...

3 months ago | 0

Solved

middleAsColumn: Return all but first and last element as a column vector
Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

3 months ago

Solved

Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

3 months ago

Solved

Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

3 months ago

Solved

Summation of Non Zeros Numbers in String Variable
Find the Summation of Non Zeros Numbers in String Variable The input : x = '100205' The Output : y = 8

3 months ago

Display numeric value before function with using syms
You can include the unit when you define current: syms t; u=symunit; current = vpa(0.002*sin(10^3*t))*u.A; displayFormula("i...

3 months ago | 0

| accepted

Solved

Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

4 months ago

Solved

Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If p is the perimeter of a right angle triangle with integral length sides, { a, b, c }, there are exactly three solutions for p...

4 months ago