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

6 days 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, :);

6 days 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))

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

6 days 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

6 days 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

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

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

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

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

6 days 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

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

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

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

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

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

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

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

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

7 days ago | 0

| accepted

Answered

Poisson distribution and discrete distribution

fitdist allows you to fit a distribution to data. I want to fit Y to a Discrete distribution There are an infinite number of d...

Poisson distribution and discrete distribution

fitdist allows you to fit a distribution to data. I want to fit Y to a Discrete distribution There are an infinite number of d...

7 days ago | 0

Answered

creating a function nonpivotcols that takes a m*n matrix as input and produces a matrix consisting of the nonpivot columns of the input

[R pcols]=rref(A); A(:,pcols)=[]; You deleted the pivot columns out of A. Whatever is left must be non-pivot columns. [r,fcol...

creating a function nonpivotcols that takes a m*n matrix as input and produces a matrix consisting of the nonpivot columns of the input

[R pcols]=rref(A); A(:,pcols)=[]; You deleted the pivot columns out of A. Whatever is left must be non-pivot columns. [r,fcol...

7 days ago | 0

Answered

What does it mean to "% extract t and h(t) for time range 5.0<=t<=12.0" when "h=4.0+6.0*t*10^-0.5-(4*10^-0.25)*cos(0.75*pi*t)"?; when

One way: Loop over the indices of the vector of t. At each point, make the "current" t equal to the t vector indexed at the cur...

What does it mean to "% extract t and h(t) for time range 5.0<=t<=12.0" when "h=4.0+6.0*t*10^-0.5-(4*10^-0.25)*cos(0.75*pi*t)"?; when

One way: Loop over the indices of the vector of t. At each point, make the "current" t equal to the t vector indexed at the cur...

7 days ago | 0

Answered

Select multiple radiobutton at the same time

hf=exemple; You run the code in exemple and it returns. You are no longer running any code inside exemple but it set up sev...

Select multiple radiobutton at the same time

hf=exemple; You run the code in exemple and it returns. You are no longer running any code inside exemple but it set up sev...

7 days ago | 0

Answered

Cannot execute Figure(3).

q=[0.000000025;0.000000034;0.000000042]; %Calculate manually on 0.75Q, Q, 1.25Q; f=1-exp(-(((k*pi*d)/q))*z); The / opera...

Cannot execute Figure(3).

q=[0.000000025;0.000000034;0.000000042]; %Calculate manually on 0.75Q, Q, 1.25Q; f=1-exp(-(((k*pi*d)/q))*z); The / opera...

7 days ago | 0

Answered

Unrecognized function or variable 'Fid2'.

l = fgetl(FID); if strcmp(l(1),'**') fgetl returns a character vector (except at end of file) l(1) will be a sing...

Unrecognized function or variable 'Fid2'.

l = fgetl(FID); if strcmp(l(1),'**') fgetl returns a character vector (except at end of file) l(1) will be a sing...

7 days ago | 1

| accepted

Answered

Simulink files compatibility with MATLAB versions

Yes. The Function Block (not the same as MATLAB Function Block) no longer exists. You might want to hold on to one of your previ...

Simulink files compatibility with MATLAB versions

Yes. The Function Block (not the same as MATLAB Function Block) no longer exists. You might want to hold on to one of your previ...

7 days ago | 0

Answered

GPU coder :basic Code Generation failed

I think Cuda Toolkit 11.6 is not supported in your release. I am having difficulty finding the toolkit version that is supported...

GPU coder :basic Code Generation failed

I think Cuda Toolkit 11.6 is not supported in your release. I am having difficulty finding the toolkit version that is supported...

7 days ago | 0

Answered

which part of my logic is wrong?

You used the / operator. The / operator is matrix division. P/Q is approximately P*pinv(Q) . In situations such as yours with ro...

which part of my logic is wrong?

You used the / operator. The / operator is matrix division. P/Q is approximately P*pinv(Q) . In situations such as yours with ro...

8 days ago | 1

| accepted

Answered

trisurf: Removing Unwanted Lines and Surfaces from Irregular 3D Plot

You should not do this at the trisurf() level; you should be creating a modifed triangulation https://www.mathworks.com/help/ma...

trisurf: Removing Unwanted Lines and Surfaces from Irregular 3D Plot

You should not do this at the trisurf() level; you should be creating a modifed triangulation https://www.mathworks.com/help/ma...

8 days ago | 0

Answered

3D plot in Simulink

XY Graphs are specifically documented to open a different window for each block, and only permit scalar X and scalar Y. But you ...

3D plot in Simulink

XY Graphs are specifically documented to open a different window for each block, and only permit scalar X and scalar Y. But you ...

8 days ago | 0