Answered

What are the system requirements for MATLAB Runtime?

The system requirements for MATLAB Runtime (for use with an executable created with MATLAB Compiler or MATLAB Compiler SDK) are ...

What are the system requirements for MATLAB Runtime?

The system requirements for MATLAB Runtime (for use with an executable created with MATLAB Compiler or MATLAB Compiler SDK) are ...

2 days ago | 0

| accepted

Answered

gray2rgb conversion

When you allocated memory for the rgb array, you used something like, [rows, cols] = size(Image); rgb = zeros(rows, cols, 3); ...

gray2rgb conversion

When you allocated memory for the rgb array, you used something like, [rows, cols] = size(Image); rgb = zeros(rows, cols, 3); ...

2 days ago | 0

Answered

why the subtraction gives the wrong ans.?

double(y) - double(Z) You could also get away with int32(y) - int32(Z) However, int16(y) - int16(Z) will not work reliably: i...

why the subtraction gives the wrong ans.?

double(y) - double(Z) You could also get away with int32(y) - int32(Z) However, int16(y) - int16(Z) will not work reliably: i...

2 days ago | 0

Answered

how to divide a 3D figure in matlab in to cubes and getting the cubes's addresses

% Step 1: Open the regions of interest file B= dicominfo('C:\Users\mij\Music\RS.1.3.6.1.4.1.2452.6.3144839235.1145246484.216557...

how to divide a 3D figure in matlab in to cubes and getting the cubes's addresses

% Step 1: Open the regions of interest file B= dicominfo('C:\Users\mij\Music\RS.1.3.6.1.4.1.2452.6.3144839235.1145246484.216557...

2 days ago | 0

Answered

GUI help in calling an if elseif else function

Use the Callback property of the edit box to trigger the action. Remember that the edit box will be char (or cell array of char ...

GUI help in calling an if elseif else function

Use the Callback property of the edit box to trigger the action. Remember that the edit box will be char (or cell array of char ...

2 days ago | 0

Answered

Artificial bee colony algorithm

https://www.mathworks.com/matlabcentral/fileexchange/50873-ant-colony-optimization-for-pid-controller-of-a-dc-motor https://www...

Artificial bee colony algorithm

https://www.mathworks.com/matlabcentral/fileexchange/50873-ant-colony-optimization-for-pid-controller-of-a-dc-motor https://www...

2 days ago | 0

Answered

Can I import data into a table where the columns become variables?

You could use tableread() to read the data, but you would want to tell it to skip the three lines at top, and you would have to ...

Can I import data into a table where the columns become variables?

You could use tableread() to read the data, but you would want to tell it to skip the three lines at top, and you would have to ...

2 days ago | 2

| accepted

Answered

how i can specify data transfer rate for data transfer from one node to other

However you want. You are programming the network representation from scratch so design it in a way that this is meaningful for ...

how i can specify data transfer rate for data transfer from one node to other

However you want. You are programming the network representation from scratch so design it in a way that this is meaningful for ...

3 days ago | 0

Answered

Not able to append to an empty container map

https://www.mathworks.com/help/matlab/ref/containers.map.html The default key type is char, so use the keytype valuetype opti...

Not able to append to an empty container map

https://www.mathworks.com/help/matlab/ref/containers.map.html The default key type is char, so use the keytype valuetype opti...

3 days ago | 2

| accepted

Answered

Simplify symbolic expressions with custom constraints

No it is not possible.

Simplify symbolic expressions with custom constraints

No it is not possible.

3 days ago | 0

Answered

How to check if a specific 'part' of a cell array exists?

numel(burstcountdata) < x Then the element doesn't exist

How to check if a specific 'part' of a cell array exists?

numel(burstcountdata) < x Then the element doesn't exist

3 days ago | 0

| accepted

Answered

How do I exactly pass function handles for MATLAB callbacks?

MATLAB automatically passes callbacks handle of the current object, and event data (typically empty or a struct, sometimes an ob...

How do I exactly pass function handles for MATLAB callbacks?

MATLAB automatically passes callbacks handle of the current object, and event data (typically empty or a struct, sometimes an ob...

4 days ago | 1

| accepted

Answered

Is it possible to load a variable that can not be cleared

Create a function named X.m that when given the argument 'load' loads the value of X from a file and puts it into a persistent v...

Is it possible to load a variable that can not be cleared

Create a function named X.m that when given the argument 'load' loads the value of X from a file and puts it into a persistent v...

5 days ago | 0

Answered

Unexpected error with imfill

That particular syntax is only valid if your input array is type logical, but your BW1 is some other data type. For example, it ...

Unexpected error with imfill

That particular syntax is only valid if your input array is type logical, but your BW1 is some other data type. For example, it ...

5 days ago | 0

| accepted

Answered

Writing matlab table to excel with spaces in variable names?

No. You will need to convert your content to cell and put the desired names as the first row, and write the cell (without variab...

Writing matlab table to excel with spaces in variable names?

No. You will need to convert your content to cell and put the desired names as the first row, and write the cell (without variab...

5 days ago | 0

| accepted

Answered

For loop, Subscript indices must either be real positive integers or logicals ?

https://www.mathworks.com/matlabcentral/answers/470959-loop-with-two-variables#answer_382585 shows a general structure you can u...

For loop, Subscript indices must either be real positive integers or logicals ?

https://www.mathworks.com/matlabcentral/answers/470959-loop-with-two-variables#answer_382585 shows a general structure you can u...

5 days ago | 0

| accepted

Answered

How to update a complicated figure ?

Create your patches once, not every time you rotate. Update the Vertices of the patches instead of creating new patches. You ...

How to update a complicated figure ?

Create your patches once, not every time you rotate. Update the Vertices of the patches instead of creating new patches. You ...

5 days ago | 0

Answered

Previously purchased simulink packages

As long as you stay with the same license then you retain rights to access those toolboxes. However they will not necessarily be...

Previously purchased simulink packages

As long as you stay with the same license then you retain rights to access those toolboxes. However they will not necessarily be...

6 days ago | 0

| accepted

Answered

plz help me with the integration of this eq from 0 to infinity e(^(-ax))(1+jx/b)^-ndx where n>0

>> syms a b x >> syms n positive >> int(exp(-a*x)*(1 + x*1i/b)^(-n), x,0,inf) ans = piecewise(angle(1i/b) < pi & (angle(a) ...

plz help me with the integration of this eq from 0 to infinity e(^(-ax))(1+jx/b)^-ndx where n>0

>> syms a b x >> syms n positive >> int(exp(-a*x)*(1 + x*1i/b)^(-n), x,0,inf) ans = piecewise(angle(1i/b) < pi & (angle(a) ...

6 days ago | 0

| accepted

Answered

How to change data files of a deployed web app and maintain this change across sessions

The closest you can get is at run time figure out a suitable directory to check for files and to store into when the user makes ...

How to change data files of a deployed web app and maintain this change across sessions

The closest you can get is at run time figure out a suitable directory to check for files and to store into when the user makes ...

6 days ago | 1

| accepted

Answered

For loop error: Subscript indices must either be real positive integers or logicals

http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F mat2str((find((0:0.1:10)*10-(0:10...

For loop error: Subscript indices must either be real positive integers or logicals

http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F mat2str((find((0:0.1:10)*10-(0:10...

6 days ago | 0

Answered

CIFAR - 10 dataset kaggle

When you use imageDataStore, use 'labelsource', 'none' . But after you create the object, set its Labels property to a cell arra...

CIFAR - 10 dataset kaggle

When you use imageDataStore, use 'labelsource', 'none' . But after you create the object, set its Labels property to a cell arra...

6 days ago | 1

| accepted

Answered

Finding Lines in a Large Text File with a Specific Text

If you have enough memory: S = fileread('YourFileNameHere.txt'); selected = regexp('^.*<fieldname\s*=.*$', 'match', 'dotexcept...

Finding Lines in a Large Text File with a Specific Text

If you have enough memory: S = fileread('YourFileNameHere.txt'); selected = regexp('^.*<fieldname\s*=.*$', 'match', 'dotexcept...

6 days ago | 0

Answered

How to specify an exact value of variable in (For Loop)

for i=1:3 x(i)=i+2; end x(2:3)

How to specify an exact value of variable in (For Loop)

for i=1:3 x(i)=i+2; end x(2:3)

6 days ago | 0

| accepted

Answered

Running a simulation with a specified number of bits of precision

Not exactly. However, you can use Fixed Point Toolbox to create 16 bit objects with various properties. https://www.mathworks.c...

Running a simulation with a specified number of bits of precision

Not exactly. However, you can use Fixed Point Toolbox to create 16 bit objects with various properties. https://www.mathworks.c...

6 days ago | 0

Answered

selecting audiofile from app (appdesigner) and then run the file doesnt work

This is completely expected. run() does not execute within the context of the base workspace: run() executes within the context ...

selecting audiofile from app (appdesigner) and then run the file doesnt work

This is completely expected. run() does not execute within the context of the base workspace: run() executes within the context ...

6 days ago | 0

Answered

How to post process each variable in a mat file ?

S = load(filename) fn = fieldnames(S) Fc = length(fn) for k = 1 : Fc F = fn{k} Data = S.(F) Process Da...

How to post process each variable in a mat file ?

S = load(filename) fn = fieldnames(S) Fc = length(fn) for k = 1 : Fc F = fn{k} Data = S.(F) Process Da...

6 days ago | 1

| accepted

Answered

"Undefined function or variable 'drawfreehand'." All ROI functions don't work.

Needs R2018b

"Undefined function or variable 'drawfreehand'." All ROI functions don't work.

Needs R2018b

6 days ago | 2

| accepted

Answered

range in symbolic form

ch = children(solution); [children(ch(1)),children(ch(2))]

range in symbolic form

ch = children(solution); [children(ch(1)),children(ch(2))]

6 days ago | 0