Réponse apportée

Mex file. error in passing data.

Your code behaves exactly as I would expect: fills elements l1 to l2 of CE with twice the first element of C. I suggest you find...

Mex file. error in passing data.

Your code behaves exactly as I would expect: fills elements l1 to l2 of CE with twice the first element of C. I suggest you find...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

String scalar or character vector must have valid interpreter syntax.

The error tells you the latex is invalid. Indeed it is, it's missing some spaces around the \mid ylabel('$\mid H(f) \mid$ (deg/...

String scalar or character vector must have valid interpreter syntax.

The error tells you the latex is invalid. Indeed it is, it's missing some spaces around the \mid ylabel('$\mid H(f) \mid$ (deg/...

plus de 4 ans il y a | 3

Réponse apportée

Write data on to Excel

If I understood correctly: xlswrite(somefile, reshape([M, nan(size(M, 1), 1, size(M, 3))], 6, []), '', 'E1') basically pad you...

Write data on to Excel

If I understood correctly: xlswrite(somefile, reshape([M, nan(size(M, 1), 1, size(M, 3))], 6, []), '', 'E1') basically pad you...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

Convert each 2D matrix in a collection of matrices into a diagonal matrix

A = A .* permute(eye(size(A, 2), [3 1 2])) %multiply each matrix by the identity matrix which keeps just the diagonal of each ...

Convert each 2D matrix in a collection of matrices into a diagonal matrix

A = A .* permute(eye(size(A, 2), [3 1 2])) %multiply each matrix by the identity matrix which keeps just the diagonal of each ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

Is it possible to make Acos return values greater than pi?

"Is it possible to make Acos return values greater than pi?" No. The function codomain is mathematically defined as [0, ]. You ...

Is it possible to make Acos return values greater than pi?

"Is it possible to make Acos return values greater than pi?" No. The function codomain is mathematically defined as [0, ]. You ...

plus de 4 ans il y a | 0

Réponse apportée

Unable to perform assignment because dot indexing is not supported for variables of this type.

The error is easily explained. You're expecting readtable to read the first column of your csv as a datetime. You haven't checke...

Unable to perform assignment because dot indexing is not supported for variables of this type.

The error is easily explained. You're expecting readtable to read the first column of your csv as a datetime. You haven't checke...

plus de 4 ans il y a | 0

Réponse apportée

Any notes or examples available on calculating the modulation transfer function of an imaging system in matlab

If I remember correctly, there is matlab code that comes with the iso standard on MTF (ISO 15529:2010). I can't remember where ...

Any notes or examples available on calculating the modulation transfer function of an imaging system in matlab

If I remember correctly, there is matlab code that comes with the iso standard on MTF (ISO 15529:2010). I can't remember where ...

plus de 4 ans il y a | 1

Réponse apportée

Have class vector; how obtain vector of a field?

ages = [meep.age]; %same as: ages = horzcat(meep.age); %or ages = vertcat(meep.age); %to vertically concatenate all the valu...

Have class vector; how obtain vector of a field?

ages = [meep.age]; %same as: ages = horzcat(meep.age); %or ages = vertcat(meep.age); %to vertically concatenate all the valu...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

sscanf not working for text on multiple lines.

"now all of a sudden the code doesn't work at all!" Well, yes that would be because the text portion in your sample file is not...

sscanf not working for text on multiple lines.

"now all of a sudden the code doesn't work at all!" Well, yes that would be because the text portion in your sample file is not...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

Adding rows to matrix conditionally

We don't have enough details to give you a complete answer but what you want to do should be easily done by reading your file a...

Adding rows to matrix conditionally

We don't have enough details to give you a complete answer but what you want to do should be easily done by reading your file a...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

How to add a matrix vertically and nest an if loop

Using a loop for this would be pointless and unnecessary complicated Oxygenminute = (1:numel(Oxygen))' * 5; Oxygenhour = floor...

How to add a matrix vertically and nest an if loop

Using a loop for this would be pointless and unnecessary complicated Oxygenminute = (1:numel(Oxygen))' * 5; Oxygenhour = floor...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

Interpolation of in-between values in a list of different groups

I've not tried to understand your code to see where the slow processing is (edit: it's probably the stack) There's no reason for...

Interpolation of in-between values in a list of different groups

I've not tried to understand your code to see where the slow processing is (edit: it's probably the stack) There's no reason for...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée

Produce equality matrix based on elements in vector.

Trivially done. %assuming A and B are both row vectors: C = A.' == B; If they're both column vectors, transpose B instead.

Produce equality matrix based on elements in vector.

Trivially done. %assuming A and B are both row vectors: C = A.' == B; If they're both column vectors, transpose B instead.

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

Getting a command like gather to run silently

The following is unfortunately completely undocumented and therefore to be used at your own risk. It may stop working in a futur...

Getting a command like gather to run silently

The following is unfortunately completely undocumented and therefore to be used at your own risk. It may stop working in a futur...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée

I want to get rid of the e+03 in the numbers presented in my table

In the view tab, under Number Display Format select "Long Fixed Decimal" (2nd option) or "Long Fixed Decimal or Scientific Notat...

I want to get rid of the e+03 in the numbers presented in my table

In the view tab, under Number Display Format select "Long Fixed Decimal" (2nd option) or "Long Fixed Decimal or Scientific Notat...

plus de 4 ans il y a | 2

Réponse apportée

Index exceeds the number of array elements (2).

Always preallocate vectors instead of growing them in a loop, so before the loop: M = zeros(1, total_t); While this will get r...

Index exceeds the number of array elements (2).

Always preallocate vectors instead of growing them in a loop, so before the loop: M = zeros(1, total_t); While this will get r...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

strtok is only using the first character of my delimiter instead of the full character vector

"How do I make it so that only HAIR is the delimiter and not H, A, I, or R?" You can't do that with strtok. The simplest is to ...

strtok is only using the first character of my delimiter instead of the full character vector

"How do I make it so that only HAIR is the delimiter and not H, A, I, or R?" You can't do that with strtok. The simplest is to ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

Decompose image into the sum of two images

I don't see how your code even attempt to answer your assignment. Which of the image processing function would you use to detec...

Decompose image into the sum of two images

I don't see how your code even attempt to answer your assignment. Which of the image processing function would you use to detec...

plus de 4 ans il y a | 0

Réponse apportée

All input arguments must be tables error

"NT1,T1,NT2,T2 are all 7*1 matrix" Clearly not! At least one of them is a table. If you concatenate something with a table, as ...

All input arguments must be tables error

"NT1,T1,NT2,T2 are all 7*1 matrix" Clearly not! At least one of them is a table. If you concatenate something with a table, as ...

plus de 4 ans il y a | 0

Réponse apportée

How to find the maximum element among the minimum elements in the columns in matrix m:n? With using loops.

There's never any need for a loop for things like that. Loops usually complicate the code in matlab. maxofcolmin = max(min(mass...

How to find the maximum element among the minimum elements in the columns in matrix m:n? With using loops.

There's never any need for a loop for things like that. Loops usually complicate the code in matlab. maxofcolmin = max(min(mass...

plus de 4 ans il y a | 0

Réponse apportée

Function overwrites output with a different number

"How would I create and store that question tree/its outputs" There are many options, which one you'd choose would be up to you...

Function overwrites output with a different number

"How would I create and store that question tree/its outputs" There are many options, which one you'd choose would be up to you...

plus de 4 ans il y a | 0

Réponse apportée

Error using table.init (line 401) The VariableNames property must contain one name for each variable in the table.

"Any idea how to resolve it.?" Well, yes provide as many variable names as there are columns in the arrays Accuracy_NN and Accu...

Error using table.init (line 401) The VariableNames property must contain one name for each variable in the table.

"Any idea how to resolve it.?" Well, yes provide as many variable names as there are columns in the arrays Accuracy_NN and Accu...

plus de 4 ans il y a | 0

Réponse apportée

Using convn with pictures and kernel.

It would be pointless to convert your 3D arrays into cell arrays of 2D arrays. You would just be storing the same information bu...

Using convn with pictures and kernel.

It would be pointless to convert your 3D arrays into cell arrays of 2D arrays. You would just be storing the same information bu...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

How can I use activeX to access Microsoft Excel equation editor from matlab

" I want the user of d app to be able to type mathematical expressions in textbook format" I don't believe you're going to achi...

How can I use activeX to access Microsoft Excel equation editor from matlab

" I want the user of d app to be able to type mathematical expressions in textbook format" I don't believe you're going to achi...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

it does not count this as right

First, don't post screenshots of the code. Simply copy/paste the code as text directly in your code (and then click the button)...

it does not count this as right

First, don't post screenshots of the code. Simply copy/paste the code as text directly in your code (and then click the button)...

plus de 4 ans il y a | 1

Réponse apportée

Readtable error help?

I suspect to your 'FY20' is meant to be the sheet name. Unlike xlsread, with readtable the sheet name is passed as a Name-Parame...

Readtable error help?

I suspect to your 'FY20' is meant to be the sheet name. Unlike xlsread, with readtable the sheet name is passed as a Name-Parame...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée

HELP PLEASE! How to insert arrays 1x24 in columns of a database sql?

Your columns input is completely wrong. It's a cell array with just one cell, a very long char vector. You then wrap that into a...

HELP PLEASE! How to insert arrays 1x24 in columns of a database sql?

Your columns input is completely wrong. It's a cell array with just one cell, a very long char vector. You then wrap that into a...

plus de 4 ans il y a | 1

Réponse apportée

trial version of matlab2013b

For this kind a question, contact Mathworks sales directly. Only they can answer you properly.

trial version of matlab2013b

For this kind a question, contact Mathworks sales directly. Only they can answer you properly.

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

Error using varfun function. "Matrix dimensions must agree."

Several points: "As I understand, I am multiplying 52824x9*9x1" No, you're using .*, the memberwise multiplication, not * the m...

Error using varfun function. "Matrix dimensions must agree."

Several points: "As I understand, I am multiplying 52824x9*9x1" No, you're using .*, the memberwise multiplication, not * the m...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée

I'm trying to create a code that determines whether a word (or phrase) is a palindrome. The code only needs to look at the actual letters within the input string, but I'm not sure how to do that.

See isstrprop.

I'm trying to create a code that determines whether a word (or phrase) is a palindrome. The code only needs to look at the actual letters within the input string, but I'm not sure how to do that.

See isstrprop.

plus de 4 ans il y a | 1