Answered

How to create a 1400 × 2 matrix of normally distributed random multiples of 10?

You can round(x, -1) to round to the nearest multiple of 10. However, Normal Distribution is inherently a continuous distribu...

How to create a 1400 × 2 matrix of normally distributed random multiples of 10?

You can round(x, -1) to round to the nearest multiple of 10. However, Normal Distribution is inherently a continuous distribu...

5 Tage ago | 1

| accepted

Answered

I need help solving this Fourier series using Matlab.

Any one series of fourier coefficients would be valid for a section to be approximated as being a consistent function of time. ...

I need help solving this Fourier series using Matlab.

Any one series of fourier coefficients would be valid for a section to be approximated as being a consistent function of time. ...

6 Tage ago | 0

Answered

How to use the simulation time in an embedded function in matlab

You are calling hybrid() in a context where through propagation or backwards propagation or explicit setting in the block, or by...

How to use the simulation time in an embedded function in matlab

You are calling hybrid() in a context where through propagation or backwards propagation or explicit setting in the block, or by...

6 Tage ago | 0

| accepted

Answered

Input image data directly from Variable and not DataStore?

<https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.arraydatastore.html>

Input image data directly from Variable and not DataStore?

<https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.arraydatastore.html>

6 Tage ago | 1

Answered

how to simplify a symmatrix expression

syms MW0 [3 3] matrix syms MDW0 [3 3] matrix syms Cn [3 3] matrix expression = Cn*(MW0+ MDW0) - Cn*MW0 class(expression...

how to simplify a symmatrix expression

syms MW0 [3 3] matrix syms MDW0 [3 3] matrix syms Cn [3 3] matrix expression = Cn*(MW0+ MDW0) - Cn*MW0 class(expression...

6 Tage ago | 1

Answered

Check what values of three variables fulfill a certain condition

You do not need to loop over z. Instead, take z = sqrt(x.^2+y.^2) and test to see whether z is an integer. And... vectorize. Fo...

Check what values of three variables fulfill a certain condition

You do not need to loop over z. Instead, take z = sqrt(x.^2+y.^2) and test to see whether z is an integer. And... vectorize. Fo...

6 Tage ago | 0

Answered

Gauss Elimination - making my upper triangular matrix

length(b) of a 2D array is defined as length = 0 if isempty(b) length = max(size(b)) otherwise You should avoid using length(...

Gauss Elimination - making my upper triangular matrix

length(b) of a 2D array is defined as length = 0 if isempty(b) length = max(size(b)) otherwise You should avoid using length(...

6 Tage ago | 0

| accepted

Answered

Graphing partial sums of harmonic fourier series

Use x = linspace(-2, 4, 200); Currently you are using x = [-2, -1, 0, 1, 2, 3, 4] which is not enough to get a decent graph.

Graphing partial sums of harmonic fourier series

Use x = linspace(-2, 4, 200); Currently you are using x = [-2, -1, 0, 1, 2, 3, 4] which is not enough to get a decent graph.

6 Tage ago | 0

Answered

Comparing difference between two tables

If you mean that they are table() objects, then you cannot index a table object using only a single subscript. You can, however,...

Comparing difference between two tables

If you mean that they are table() objects, then you cannot index a table object using only a single subscript. You can, however,...

6 Tage ago | 0

Answered

what does this line of do

FV might be a structure that has a field named totalArea and the content of the field is to be copied to a destination. Or po...

what does this line of do

FV might be a structure that has a field named totalArea and the content of the field is to be copied to a destination. Or po...

6 Tage ago | 0

Answered

i am receiving the error "Execution of script loopRectangular as a function is not supported" when i try to run the following line of code: ha=loopRectangular('Length',1.0,'W

It sounds as if the function is defined inside the mlx and you are trying to call it from outside the mlx. That is not possible....

i am receiving the error "Execution of script loopRectangular as a function is not supported" when i try to run the following line of code: ha=loopRectangular('Length',1.0,'W

It sounds as if the function is defined inside the mlx and you are trying to call it from outside the mlx. That is not possible....

7 Tage ago | 0

Answered

extracting rows from large table

mask = YourTable{:, 5} == 0; subset0 = YourTable(mask, :);

extracting rows from large table

mask = YourTable{:, 5} == 0; subset0 = YourTable(mask, :);

7 Tage ago | 0

| accepted

Answered

Access Sub-fields of multiple different-named fields in struct

struct2cell(structfun(@(F)F.x, s, 'UniformOutput', 0))

Access Sub-fields of multiple different-named fields in struct

struct2cell(structfun(@(F)F.x, s, 'UniformOutput', 0))

7 Tage ago | 1

Answered

Why does sqlread() not work?

https://www.mathworks.com/help/database/ug/sqlite.sqlread.html sqlread() for sqllite() requires r2022a or later; you are usin...

Why does sqlread() not work?

https://www.mathworks.com/help/database/ug/sqlite.sqlread.html sqlread() for sqllite() requires r2022a or later; you are usin...

7 Tage ago | 0

Answered

Find the position of numbers in array

percent_present = mean(ismember(SmallVector, LargeVector)) * 100

Find the position of numbers in array

percent_present = mean(ismember(SmallVector, LargeVector)) * 100

7 Tage ago | 0

Answered

The source code for the parfor-loop could not be found

Sometimes you need to addAttachedFiles; https://www.mathworks.com/help/parallel-computing/parallel.pool.addattachedfiles.html

The source code for the parfor-loop could not be found

Sometimes you need to addAttachedFiles; https://www.mathworks.com/help/parallel-computing/parallel.pool.addattachedfiles.html

7 Tage ago | 0

| accepted

Answered

create a function from temperature data

If you have the Curve Fitting Toolbox, you can use curvefitter() https://www.mathworks.com/help/curvefit/curvefitter-app.html . ...

create a function from temperature data

If you have the Curve Fitting Toolbox, you can use curvefitter() https://www.mathworks.com/help/curvefit/curvefitter-app.html . ...

7 Tage ago | 0

Answered

How to fill just such successive elements in row of matrix?

Consider for example, A(i : min(i+k-1, end), j) This would refer to at most k consecutive rows starting at row i but would sto...

How to fill just such successive elements in row of matrix?

Consider for example, A(i : min(i+k-1, end), j) This would refer to at most k consecutive rows starting at row i but would sto...

7 Tage ago | 0

Answered

Extracting envelope using hilbert transform

According to the documentation, the real part of the return value is the same as the input value, and the hilbert transform is s...

Extracting envelope using hilbert transform

According to the documentation, the real part of the return value is the same as the input value, and the hilbert transform is s...

7 Tage ago | 1

Answered

How to put bounds and delete certain rows from a matrix.

In MATLAB, if you use logical indexing to delete entries from an array, then the result you get is a column vector in linear ind...

How to put bounds and delete certain rows from a matrix.

In MATLAB, if you use logical indexing to delete entries from an array, then the result you get is a column vector in linear ind...

7 Tage ago | 0

Answered

Retrieve data from a guidata from another file

handles_hf = guidata(hf); if handles_hf.X.Value == 1

Retrieve data from a guidata from another file

handles_hf = guidata(hf); if handles_hf.X.Value == 1

7 Tage ago | 0

| accepted

Answered

Calculate the area of geometry

The first thing you need to do is decide how the user is going to represent the specific shape for calculation purposes. are y...

Calculate the area of geometry

The first thing you need to do is decide how the user is going to represent the specific shape for calculation purposes. are y...

7 Tage ago | 0

Answered

How to distribute random points outwards from a center location?

cx = 3; cy = 5; %as appropriate R = 20; N = 1000; theta = rand(1, N) * (2 * pi); rbase = rand(1,N) * R; [X, Y] = pol2cart...

How to distribute random points outwards from a center location?

cx = 3; cy = 5; %as appropriate R = 20; N = 1000; theta = rand(1, N) * (2 * pi); rbase = rand(1,N) * R; [X, Y] = pol2cart...

7 Tage ago | 1

| accepted

Answered

Problem using variable='z^-1' in Z transform with Z^-1 format

Setting the Variable property afterwards just changes the Variable property, without reinterpretting the matrices. It is not a c...

Problem using variable='z^-1' in Z transform with Z^-1 format

Setting the Variable property afterwards just changes the Variable property, without reinterpretting the matrices. It is not a c...

7 Tage ago | 0

Answered

MAJOR 25+ YEAR OLD MATLAB BUG. PLEASE, PLEASE FIX! Ctrl-C doesn't work, no way to stop a process.

| appreciate that there are issues with OS implementations, eg memory management, that make this a challenge. That said, I'm qu...

MAJOR 25+ YEAR OLD MATLAB BUG. PLEASE, PLEASE FIX! Ctrl-C doesn't work, no way to stop a process.

| appreciate that there are issues with OS implementations, eg memory management, that make this a challenge. That said, I'm qu...

7 Tage ago | 1

Answered

got new laptop; can't access matlab from it

https://www.mathworks.com/downloads/ for downloads. You will probably need to deactivate against the old system to activate on ...

got new laptop; can't access matlab from it

https://www.mathworks.com/downloads/ for downloads. You will probably need to deactivate against the old system to activate on ...

8 Tage ago | 0

Answered

Has anyone got aaS Matlab toolbox I need it soon kindly help I will be very grateful to you

The current student software downloads are linked from https://www.ansys.com/academic/students Ansys aaS appears, however, to ...

Has anyone got aaS Matlab toolbox I need it soon kindly help I will be very grateful to you

The current student software downloads are linked from https://www.ansys.com/academic/students Ansys aaS appears, however, to ...

8 Tage ago | 0

Answered

find 1s in the Matrix

firstcol = 48; lastcol = 65; offsetcol = 14; idx = firstcol:lastcol; offsetidx = idx-offsetcol; result = YourMatrix(:,offse...

find 1s in the Matrix

firstcol = 48; lastcol = 65; offsetcol = 14; idx = firstcol:lastcol; offsetidx = idx-offsetcol; result = YourMatrix(:,offse...

8 Tage ago | 0

| accepted

Answered

Drawing a boundary box around an image?

My goal is to create a bounding box around the non-zero pixel value region of my image. filename = 'https://www.mathworks.com...

Drawing a boundary box around an image?

My goal is to create a bounding box around the non-zero pixel value region of my image. filename = 'https://www.mathworks.com...

8 Tage ago | 0

| accepted