Answered

How to find size of CellArray in mex c++?

To get the size of the cell array, use *|mxGetM|* for number of rows, *|mxGetN|* for number of columns, or *|mxGetNumberOfElemen...

How to find size of CellArray in mex c++?

To get the size of the cell array, use *|mxGetM|* for number of rows, *|mxGetN|* for number of columns, or *|mxGetNumberOfElemen...

más de 3 años ago | 0

Answered

I'm trying to select a value from one column in a cell array based on another value.

Table = {1 23 'ND'; 2 33 'ND'; 3 14 'AA'; 4 11 'AA'; 6 16 'ND'}; %Y...

I'm trying to select a value from one column in a cell array based on another value.

Table = {1 23 'ND'; 2 33 'ND'; 3 14 'AA'; 4 11 'AA'; 6 16 'ND'}; %Y...

más de 3 años ago | 0

| accepted

Answered

How to save multiple MATLAB figures automatically in program?

Use |savefig| <https://www.mathworks.com/help/matlab/ref/savefig.html> Note: You should save using the full file name, which...

How to save multiple MATLAB figures automatically in program?

Use |savefig| <https://www.mathworks.com/help/matlab/ref/savefig.html> Note: You should save using the full file name, which...

más de 3 años ago | 0

| accepted

Answered

Im trying to code the following equation (Attached) in MATLAB, could someone please tell me if i coded it right. Thanks

eqn= Ma.*sqrt(gam.*R.*Ta).*((1+f).*sqrt(T04./Ta).*(1+((gam-1)./2).*Ma.^2).^(-0.5))-1 ...

Im trying to code the following equation (Attached) in MATLAB, could someone please tell me if i coded it right. Thanks

eqn= Ma.*sqrt(gam.*R.*Ta).*((1+f).*sqrt(T04./Ta).*(1+((gam-1)./2).*Ma.^2).^(-0.5))-1 ...

más de 3 años ago | 0

Answered

where can I find teh 9.1 version of runtime?

<https://www.mathworks.com/products/compiler/matlab-runtime.html>

where can I find teh 9.1 version of runtime?

<https://www.mathworks.com/products/compiler/matlab-runtime.html>

más de 3 años ago | 0

Answered

Message Error - Problem with GUI tutorial

I can't seem anything obviously wrong on the code side of things. Use debugging methods to figure out what is the contents of |s...

Message Error - Problem with GUI tutorial

I can't seem anything obviously wrong on the code side of things. Use debugging methods to figure out what is the contents of |s...

más de 3 años ago | 0

| accepted

Answered

why is this code not working pls help me out

Wild solution guess: Do not start the GUI by double-clicking the .fig file. Instead, start the GUI by running the .m file.

why is this code not working pls help me out

Wild solution guess: Do not start the GUI by double-clicking the .fig file. Instead, start the GUI by running the .m file.

más de 3 años ago | 0

Answered

Fastest way to create N by 1 matrix which contain lots of zero without using for loop

a = 1; b = 2; c = 3; N = 10; D = [repelem(a, 4, 1); repmat([b; 0; 0; 0], N, 1); repelem(c, 2, ...

Fastest way to create N by 1 matrix which contain lots of zero without using for loop

a = 1; b = 2; c = 3; N = 10; D = [repelem(a, 4, 1); repmat([b; 0; 0; 0], N, 1); repelem(c, 2, ...

más de 3 años ago | 0

| accepted

Answered

How to save figures while specifying the saving location, extension and resolution?

print(fig2, fullfile(FolderName, windowname2), '-dpng', '-r600') Use |print| instead of |savefig| to save a figure to a spe...

How to save figures while specifying the saving location, extension and resolution?

print(fig2, fullfile(FolderName, windowname2), '-dpng', '-r600') Use |print| instead of |savefig| to save a figure to a spe...

más de 3 años ago | 0

| accepted

Answered

Parfor starting a new parallel pool at every call?

Do this once in your MATLAB command line to set the default setting to : ps = parallel.Settings; ps.Pool.AutoCreate ...

Parfor starting a new parallel pool at every call?

Do this once in your MATLAB command line to set the default setting to : ps = parallel.Settings; ps.Pool.AutoCreate ...

más de 3 años ago | 1

| accepted

Answered

Save an output file which is a cell

Data = {'string', 1, [1 2 3 4]}; %Make sure there is no multi-element entity in each cell (like the matrix) MatLoc = c...

Save an output file which is a cell

Data = {'string', 1, [1 2 3 4]}; %Make sure there is no multi-element entity in each cell (like the matrix) MatLoc = c...

más de 3 años ago | 0

Answered

huffman encoding for image

I haven't used huffmandict before, but based on the document and the error message you have, I suspect your inputs are wrong. ...

huffman encoding for image

I haven't used huffmandict before, but based on the document and the error message you have, I suspect your inputs are wrong. ...

más de 3 años ago | 0

| accepted

Answered

HISTCOUNTS a true replacement of HISTC?

Interesting finding that histcounts doesn't have the Dim option. You should ask TMW to add that feature - they must have overloo...

HISTCOUNTS a true replacement of HISTC?

Interesting finding that histcounts doesn't have the Dim option. You should ask TMW to add that feature - they must have overloo...

más de 3 años ago | 0

Answered

how to use multiple function like mean and sum in cellfun at same time?

B = cellfun(@(x) [mean(x(:, 2:3), 1) sum(x(:, 4), 1)], A, 'UniformOutput', false); you'll get a 30x1 cell containing a ...

how to use multiple function like mean and sum in cellfun at same time?

B = cellfun(@(x) [mean(x(:, 2:3), 1) sum(x(:, 4), 1)], A, 'UniformOutput', false); you'll get a 30x1 cell containing a ...

más de 3 años ago | 0

Answered

Is Mathworks is ISO 26262 Certified Tool ?

<https://www.mathworks.com/solutions/automotive/standards/iso-26262.html> You'll probably have to contact MathWorks directly ...

Is Mathworks is ISO 26262 Certified Tool ?

<https://www.mathworks.com/solutions/automotive/standards/iso-26262.html> You'll probably have to contact MathWorks directly ...

más de 3 años ago | 0

Answered

About the efficiency of parallel computing

Read this: <https://www.mathworks.com/help/optim/ug/improving-performance-with-parallel-computing.html> It depends on the ...

About the efficiency of parallel computing

Read this: <https://www.mathworks.com/help/optim/ug/improving-performance-with-parallel-computing.html> It depends on the ...

más de 3 años ago | 1

Answered

Confidence interval for slope and intersect using bootstrapping

I believe it's just the percentile itself for bootstraps. If you get 1000 bootstrapped sample and results, then take the top 2.5...

Confidence interval for slope and intersect using bootstrapping

I believe it's just the percentile itself for bootstraps. If you get 1000 bootstrapped sample and results, then take the top 2.5...

más de 3 años ago | 0

Answered

dimension error with * operator

Although N is a 100x100 matrix, when you do N(:), you make it into a 10000x1 vector. Get rid of the "(:)" when you want to prope...

dimension error with * operator

Although N is a 100x100 matrix, when you do N(:), you make it into a 10000x1 vector. Get rid of the "(:)" when you want to prope...

más de 3 años ago | 0

Answered

Changing letters to other letters with regexprep

Note that regexprep will replace things Sequentially. regexprep('ab',{'a','b'},{'b','c'}); ab -> bb -> cc To fix, r...

Changing letters to other letters with regexprep

Note that regexprep will replace things Sequentially. regexprep('ab',{'a','b'},{'b','c'}); ab -> bb -> cc To fix, r...

más de 3 años ago | 1

Answered

How would I write a script to solve this problem. Assume that I have a vector named D. Using iteration (for) and conditionals (if and/or switch), separate vector D into four vectors posEven, negEven, posOdd, and negOdd.

My guess is Bryce needs to _"find the maximum and minimum elements, and get the summation"_ for each variable. But seems |max|, ...

How would I write a script to solve this problem. Assume that I have a vector named D. Using iteration (for) and conditionals (if and/or switch), separate vector D into four vectors posEven, negEven, posOdd, and negOdd.

My guess is Bryce needs to _"find the maximum and minimum elements, and get the summation"_ for each variable. But seems |max|, ...

más de 3 años ago | 0

Answered

Determining the install location of a compiled program.

This was answered here: <https://www.mathworks.com/matlabcentral/answers/92949-how-can-i-find-the-directory-containing-my-com...

Determining the install location of a compiled program.

This was answered here: <https://www.mathworks.com/matlabcentral/answers/92949-how-can-i-find-the-directory-containing-my-com...

más de 3 años ago | 0

| accepted

Answered

Matrix subtraction errors using repmat

Why do you need to use |repmat|? a 1x1 matrix is a scalar, hence you can just do A-B without repmat. A = 2; %this is a 1x1 ...

Matrix subtraction errors using repmat

Why do you need to use |repmat|? a 1x1 matrix is a scalar, hence you can just do A-B without repmat. A = 2; %this is a 1x1 ...

más de 3 años ago | 0

Answered

EPS Export in R2018a/b

Here are some posts that deal with similar issues: <https://www.mathworks.com/matlabcentral/answers/92521-why-does-matlab-not...

EPS Export in R2018a/b

Here are some posts that deal with similar issues: <https://www.mathworks.com/matlabcentral/answers/92521-why-does-matlab-not...

más de 3 años ago | 0

Answered

A challenging problem: how to obtain a semi-lower triangular matrix from a general matrix?

A = [ 0 0 1 -1; -1 2 1 0; 0 2 -1 -1; -1 0 0 1; -1 -1 3 -1; ...

A challenging problem: how to obtain a semi-lower triangular matrix from a general matrix?

A = [ 0 0 1 -1; -1 2 1 0; 0 2 -1 -1; -1 0 0 1; -1 -1 3 -1; ...

más de 3 años ago | 1

Answered

how to solve "Undefined function" problem?

Add the path where your missing function is to your Matlab working path. Read more here. <https://www.mathworks.com/help/...

how to solve "Undefined function" problem?

Add the path where your missing function is to your Matlab working path. Read more here. <https://www.mathworks.com/help/...

más de 3 años ago | 0

| accepted

Answered

Why does my program not graph my function (line 17)?

Use |fplot| to plot symbolic equations, and use |plot| to plot vectors x and y. See: <https://www.mathworks.com/help/symbolic/...

Why does my program not graph my function (line 17)?

Use |fplot| to plot symbolic equations, and use |plot| to plot vectors x and y. See: <https://www.mathworks.com/help/symbolic/...

más de 3 años ago | 0

| accepted

Answered

My matlab software crashes when i run my code without giving any error log.

Before fixing memory issues, without getting an "Memory Error" message that would suggest this is the issue, perhaps look into r...

My matlab software crashes when i run my code without giving any error log.

Before fixing memory issues, without getting an "Memory Error" message that would suggest this is the issue, perhaps look into r...

más de 3 años ago | 0

Answered

Dot indexing is not supported for variables of this type

Perhaps something is corrupted in the mlapp file? See this post. <https://www.mathworks.com/matlabcentral/answers/393830-mla...

Dot indexing is not supported for variables of this type

Perhaps something is corrupted in the mlapp file? See this post. <https://www.mathworks.com/matlabcentral/answers/393830-mla...

más de 3 años ago | 0

Answered

can I increase maximum possible array used memory?

Do you have a lot of background processes? One way to increase your array size is to increase your OS's swap space. For wind...

can I increase maximum possible array used memory?

Do you have a lot of background processes? One way to increase your array size is to increase your OS's swap space. For wind...

más de 3 años ago | 0

Answered

How to rename a variable with a char

_"the output is a struct which contains fields and values."_ S = otherPersonFunction(...); %Returns structure with fields a...

How to rename a variable with a char

_"the output is a struct which contains fields and values."_ S = otherPersonFunction(...); %Returns structure with fields a...

más de 3 años ago | 0