Answered

indexing cellarrays of varying lengths in a cellarray

Are ther more performant ways to do so? A loop may be slightly faster as it doesn't have the overhead of the anonymous function...

indexing cellarrays of varying lengths in a cellarray

Are ther more performant ways to do so? A loop may be slightly faster as it doesn't have the overhead of the anonymous function...

1 dag ago | 0

| accepted

Answered

Cells merging in table

a) varfun(@(c) {vertcat(c{:})}, table1, 'GroupingVariables', 'Var1', 'InputVariables', 5:width(table1)) b) varfun(@(c) {vertc...

Cells merging in table

a) varfun(@(c) {vertcat(c{:})}, table1, 'GroupingVariables', 'Var1', 'InputVariables', 5:width(table1)) b) varfun(@(c) {vertc...

1 dag ago | 0

Answered

concatenating and comparing two datsets

Something like this should work: dataset1 = readtable('C:\somewhere\your1stexcelfile.xlsx'); %may need extra options, dependin...

concatenating and comparing two datsets

Something like this should work: dataset1 = readtable('C:\somewhere\your1stexcelfile.xlsx'); %may need extra options, dependin...

1 dag ago | 0

Answered

Matrix Dimension in Subroutine

for i=1:N FF(1:3,1:i) = ... So, clearly on the first iteration, this means assign something to: FF(1:3, 1:1) = ... %ass...

Matrix Dimension in Subroutine

for i=1:N FF(1:3,1:i) = ... So, clearly on the first iteration, this means assign something to: FF(1:3, 1:1) = ... %ass...

1 dag ago | 0

Answered

Hex to Signed Int conversion of 16bit values in a Table with data type 'cell array of character vectors'

It returned 'cell' Assuming that the "" in your example are actual double quotes and not single quotes, then you've not created...

Hex to Signed Int conversion of 16bit values in a Table with data type 'cell array of character vectors'

It returned 'cell' Assuming that the "" in your example are actual double quotes and not single quotes, then you've not created...

1 dag ago | 1

Answered

How can I enter in matlab syntax two parameters which are not exist in the system of nonlinear ode?

I think you may be asking how to parametise your odes.

How can I enter in matlab syntax two parameters which are not exist in the system of nonlinear ode?

I think you may be asking how to parametise your odes.

2 dagen ago | 0

| accepted

Answered

Mutiple Time series synchronization

I think this does what you want: contentfields = fieldnames(Content); for fieldidx = 1:numel(contentfields) %iterate over e...

Mutiple Time series synchronization

I think this does what you want: contentfields = fieldnames(Content); for fieldidx = 1:numel(contentfields) %iterate over e...

2 dagen ago | 0

| accepted

Answered

Euclidean distance of adjacent pairs of matrix

I'm a bit confused by your question. You define something you want to do then ask us to explain your own definition. Isn't the d...

Euclidean distance of adjacent pairs of matrix

I'm a bit confused by your question. You define something you want to do then ask us to explain your own definition. Isn't the d...

2 dagen ago | 0

Answered

Multiplying two double arrays within a structure

It sounds like you want to vertically concatenate the result of the multiplication for each element of your structure array. Wi...

Multiplying two double arrays within a structure

It sounds like you want to vertically concatenate the result of the multiplication for each element of your structure array. Wi...

2 dagen ago | 0

Answered

"Warning: Name is nonexistent or not a directory: " Error Message if I enter the path of a file I want to import

As KSSV shows, the proper way to build a path containing the folder and name of a file you want to import is with fullfile, and ...

"Warning: Name is nonexistent or not a directory: " Error Message if I enter the path of a file I want to import

As KSSV shows, the proper way to build a path containing the folder and name of a file you want to import is with fullfile, and ...

2 dagen ago | 0

Answered

i have 16 different types of files and i have to take the files in the bunch of 5 from the 16 files, how i put permutation and combination to get 5 files from the 16 files each time differently?

Not clear what you call file when you only show numbers. To get 5 distinct random numbers from the range 1:16: randperm(16, 5)

i have 16 different types of files and i have to take the files in the bunch of 5 from the 16 files, how i put permutation and combination to get 5 files from the 16 files each time differently?

Not clear what you call file when you only show numbers. To get 5 distinct random numbers from the range 1:16: randperm(16, 5)

2 dagen ago | 0

Answered

'σ' is not a valid table variable name.

The problem is not excel but matlab, which currently only allows valid matlab variable names as table variables. For the moment,...

'σ' is not a valid table variable name.

The problem is not excel but matlab, which currently only allows valid matlab variable names as table variables. For the moment,...

2 dagen ago | 0

Answered

How to collect individual bunches of data in a column of a matrix

Assuming that the length of your column vector is a multiple of 203+813 (if not, what should be done for the last bit that is to...

How to collect individual bunches of data in a column of a matrix

Assuming that the length of your column vector is a multiple of 203+813 (if not, what should be done for the last bit that is to...

3 dagen ago | 1

Answered

Jump in calculation results

I'm unclear what you're trying to do with your double for loop. You haven't told us what Anzahl and MaxDateienGroesse stand for,...

Jump in calculation results

I'm unclear what you're trying to do with your double for loop. You haven't told us what Anzahl and MaxDateienGroesse stand for,...

3 dagen ago | 1

Answered

'num2str' Error

Yes, what you have written makes no sense at all. You want to convert the numeric content of students(i).ID to text, so that's w...

'num2str' Error

Yes, what you have written makes no sense at all. You want to convert the numeric content of students(i).ID to text, so that's w...

3 dagen ago | 0

| accepted

Answered

pick up elements from a cell array and the result must be a cell array

With a cell array, {} operates on the content of the cells, () operates on the cell array itself. So, to crop a cell array: ne...

pick up elements from a cell array and the result must be a cell array

With a cell array, {} operates on the content of the cells, () operates on the cell array itself. So, to crop a cell array: ne...

4 dagen ago | 0

| accepted

Answered

how to multiply each element of a cell array by a different scalar

The easiest would be: result = cellfun(@times, V, num2cell(a), 'UniformOutput', false) or just use a loop. Note that V and a ...

how to multiply each element of a cell array by a different scalar

The easiest would be: result = cellfun(@times, V, num2cell(a), 'UniformOutput', false) or just use a loop. Note that V and a ...

4 dagen ago | 1

| accepted

Answered

convert image pixels to binary file

Definition of a binary file You don't mean file at all. FPGAs can't access files. If your FPGA need access to the whole image,...

convert image pixels to binary file

Definition of a binary file You don't mean file at all. FPGAs can't access files. If your FPGA need access to the whole image,...

4 dagen ago | 0

Answered

Insert desired number of spaces in the string contains numerical value

The clearest way to achieve what you want is to put the spaces explicitly in your format string: txt = sprintf('0 ...

Insert desired number of spaces in the string contains numerical value

The clearest way to achieve what you want is to put the spaces explicitly in your format string: txt = sprintf('0 ...

4 dagen ago | 0

| accepted

Answered

Confusion on total number of blocks produced after splitting image into overlapping blocks.

I don't think you got it right. First, starts with non-overlapping blocks, how many blocks do you have if divide M columns into...

Confusion on total number of blocks produced after splitting image into overlapping blocks.

I don't think you got it right. First, starts with non-overlapping blocks, how many blocks do you have if divide M columns into...

4 dagen ago | 0

| accepted

Answered

i am applying Arnold's transform on the pixels

Your image is of type 'uint8'. This means the range of intensities is between 0 and 255 (included). If you sum two uint8 and the...

i am applying Arnold's transform on the pixels

Your image is of type 'uint8'. This means the range of intensities is between 0 and 255 (included). If you sum two uint8 and the...

5 dagen ago | 0

| accepted

Answered

Saving an array of complex numbers within a loop

Note: you should extract your constants definition out of the loops. Also, there's no point in having two names for the same con...

Saving an array of complex numbers within a loop

Note: you should extract your constants definition out of the loops. Also, there's no point in having two names for the same con...

5 dagen ago | 0

| accepted

Answered

Difference between im2bw and imbinarize?

You can look at the source code of both functions to see the difference in implementation edit im2bw.m edit imbinarize.m In t...

Difference between im2bw and imbinarize?

You can look at the source code of both functions to see the difference in implementation edit im2bw.m edit imbinarize.m In t...

5 dagen ago | 1

Answered

Convert date timestamp into Datenum

a) You shouldn't be using datenum. They're completely obsolete and everything you could do with them, you can do with datetime, ...

Convert date timestamp into Datenum

a) You shouldn't be using datenum. They're completely obsolete and everything you could do with them, you can do with datetime, ...

5 dagen ago | 0

| accepted

Answered

With activeX server running Excel, access the cells syntax on range property

As Bob showed you can compute the address as text to pass to the Range property directly. However, that gets a bit complicated i...

With activeX server running Excel, access the cells syntax on range property

As Bob showed you can compute the address as text to pass to the Range property directly. However, that gets a bit complicated i...

5 dagen ago | 0

Answered

How to name different groupes of variables in one vector with indices of another?

It's annoying that compose doesn't accept positions identifiers in the format string, otherwise this could have been done in jus...

How to name different groupes of variables in one vector with indices of another?

It's annoying that compose doesn't accept positions identifiers in the format string, otherwise this could have been done in jus...

5 dagen ago | 0

Answered

Is there a way to export table with sub structures to excel w/o looing the structure?

Matlab will certainly never write your original table the way you want. You will have to convert it into a new table. The follo...

Is there a way to export table with sub structures to excel w/o looing the structure?

Matlab will certainly never write your original table the way you want. You will have to convert it into a new table. The follo...

5 dagen ago | 0

Answered

Datime User Input Problem

The problem is because of your unnecessary transition through datenum. When you do this: Start= datenum(answer(1,1)); matlab i...

Datime User Input Problem

The problem is because of your unnecessary transition through datenum. When you do this: Start= datenum(answer(1,1)); matlab i...

5 dagen ago | 0

Answered

How to make a class object respond to a long stream of event listener callbacks only at the end of the stream of events

I guess this follows from your previous question. As there's no matlab not busy kind of notification, I think the only way you ...

How to make a class object respond to a long stream of event listener callbacks only at the end of the stream of events

I guess this follows from your previous question. As there's no matlab not busy kind of notification, I think the only way you ...

5 dagen ago | 1

| accepted

Answered

find index of an arry in matlab

ismember is indeed the functio to use: [~, where] = ismember(ArrayToBeFound, BigArray) where is the index of the 1st element w...

find index of an arry in matlab

ismember is indeed the functio to use: [~, where] = ismember(ArrayToBeFound, BigArray) where is the index of the 1st element w...

6 dagen ago | 1

| accepted