Answered

How can I input time series image data in the Deep Learning Toolbox?

For working with sequence of images, you can use the sequence folding layer. An example is included in the documentations. http...

How can I input time series image data in the Deep Learning Toolbox?

For working with sequence of images, you can use the sequence folding layer. An example is included in the documentations. http...

1 day ago | 0

Answered

Calling a functions fieldname without saying its name.

You can use the function fieldnames and a for loop %s = somestruct f1 = fieldnames(s) for i = 1:length(f1) fn1 = f1{i}; ...

Calling a functions fieldname without saying its name.

You can use the function fieldnames and a for loop %s = somestruct f1 = fieldnames(s) for i = 1:length(f1) fn1 = f1{i}; ...

1 day ago | 0

| accepted

Answered

How to use "hold", or similar function, with Geobubble?

geobubble allows for size and color to be specified as variables. You can concatenate your data in one table, and use the size a...

How to use "hold", or similar function, with Geobubble?

geobubble allows for size and color to be specified as variables. You can concatenate your data in one table, and use the size a...

1 day ago | 1

Answered

Auto Image Reading and Resizing

If you have deep learning toolbox, this can be easily acheieved with the augmented Image Data Store. https://www.mathworks.com/...

Auto Image Reading and Resizing

If you have deep learning toolbox, this can be easily acheieved with the augmented Image Data Store. https://www.mathworks.com/...

4 days ago | 0

Answered

How can I vectorize these for loops?

What you are trying to do is 2D convolution. There is a function conv2 that will allow you to do this. m = ones(50); filter = ...

How can I vectorize these for loops?

What you are trying to do is 2D convolution. There is a function conv2 that will allow you to do this. m = ones(50); filter = ...

5 days ago | 1

| accepted

Answered

Updating values in array based on index vector

One of the ways is to convert your subscript to linear index and then do the assignments. ind = sub2ind(size(A),x,y); A(ind) =...

Updating values in array based on index vector

One of the ways is to convert your subscript to linear index and then do the assignments. ind = sub2ind(size(A),x,y); A(ind) =...

5 days ago | 1

| accepted

Answered

How to Automatically Shorten an Array so the number of Rows/Columns is divisible by 3

you can just calculate how many vectors you need to delete. somevector = rand(10000,1); s = 3; shortvector = somevector((end-...

How to Automatically Shorten an Array so the number of Rows/Columns is divisible by 3

you can just calculate how many vectors you need to delete. somevector = rand(10000,1); s = 3; shortvector = somevector((end-...

6 days ago | 0

| accepted

Answered

How to save (serialize) MATLAB variables to a byte string?

There is an undocumented function called "getByteStreamFromArray" which converts a matlab object to bytestream. To convert it b...

How to save (serialize) MATLAB variables to a byte string?

There is an undocumented function called "getByteStreamFromArray" which converts a matlab object to bytestream. To convert it b...

6 days ago | 1

| accepted

Answered

How to calculate it in Matlab?

You have two options. First option is to use symbolic sum "symsum" if you have symbolic math toolbox. syms y; N = 10; F1 = s...

How to calculate it in Matlab?

You have two options. First option is to use symbolic sum "symsum" if you have symbolic math toolbox. syms y; N = 10; F1 = s...

6 days ago | 0

Answered

How can I reflect a signal on Y-Axis?

You can multiply the reflection matrix with 2xn matrix of x,y coordinates. x = [0 1 2 3 4 5]; y = [0 1 2 3 4 5]; reflectionma...

How can I reflect a signal on Y-Axis?

You can multiply the reflection matrix with 2xn matrix of x,y coordinates. x = [0 1 2 3 4 5]; y = [0 1 2 3 4 5]; reflectionma...

7 days ago | 0

| accepted

Answered

text on image position

What if you used the limits of your axes and then create a relative x and y position. axes(handles.axes1); imagesc(v(:, :, z))...

text on image position

What if you used the limits of your axes and then create a relative x and y position. axes(handles.axes1); imagesc(v(:, :, z))...

7 days ago | 0

Answered

deep learning_alexnet

You have specified the image as single channel in your code. just change it to 3 channels (RGB). imageInputLayer([imageSize 1]...

deep learning_alexnet

You have specified the image as single channel in your code. just change it to 3 channels (RGB). imageInputLayer([imageSize 1]...

7 days ago | 0

| accepted

Answered

How to Add two strings

For a char array of the same length, you can do as follows. A = 'abcde'; B = '12345'; C = reshape([A;B],1,[]);

How to Add two strings

For a char array of the same length, you can do as follows. A = 'abcde'; B = '12345'; C = reshape([A;B],1,[]);

11 days ago | 0

| accepted

Answered

How to change an image (icon) on button into another one image (icon) by clicking on this button in Matlab's App Designer?

You will need to do this in the callback of your button. Assuming that when you create the button, you had set the text to Pla...

How to change an image (icon) on button into another one image (icon) by clicking on this button in Matlab's App Designer?

You will need to do this in the callback of your button. Assuming that when you create the button, you had set the text to Pla...

12 days ago | 0

| accepted

Answered

How to delete multiple rows of particular values?

Assuming that the variable is a matrix and the second column is startSeconds rowstokeep = data(:,2) > 2.37; data = data(rowsto...

How to delete multiple rows of particular values?

Assuming that the variable is a matrix and the second column is startSeconds rowstokeep = data(:,2) > 2.37; data = data(rowsto...

13 days ago | 0

| accepted

Answered

Insert the date to a missing values of series of time add NaN to the result of the sensor that measures wind velocity, wind direction, pressure, global radiation and % of humidity

If I understand your question correctly, your data has missing timestamps. You want to add these back. I suggest you import you...

Insert the date to a missing values of series of time add NaN to the result of the sensor that measures wind velocity, wind direction, pressure, global radiation and % of humidity

If I understand your question correctly, your data has missing timestamps. You want to add these back. I suggest you import you...

15 days ago | 1

| accepted

Answered

Plots in app designer

You can specify the handle of the uiaxes, so that matlab knows which axes to plot on. barh(app.UIAxes,predictorImportance); gr...

Plots in app designer

You can specify the handle of the uiaxes, so that matlab knows which axes to plot on. barh(app.UIAxes,predictorImportance); gr...

15 days ago | 0

| accepted

Answered

Unrecognized method, property, or field 'value' for class

You are using smaller case for value on line 37. just change to upper case as follows. conversionvalue = app.conversiontypeDrop...

Unrecognized method, property, or field 'value' for class

You are using smaller case for value on line 37. just change to upper case as follows. conversionvalue = app.conversiontypeDrop...

28 days ago | 0

| accepted

Answered

Create a vector with specific intervals

You can split it into 4 sequences. then merge it back together to create your desired vector. limit = 100; a1 = 4:4:limit; a2...

Create a vector with specific intervals

You can split it into 4 sequences. then merge it back together to create your desired vector. limit = 100; a1 = 4:4:limit; a2...

28 days ago | 0

Answered

How to display the equation in the graph.Here the slope is found to be 0.35(if i am not wrong) and i want to display the equation as y=0.35x on the graph .Any answers will be highly appreciated

There are two options. First option is to use the text function to display the text on the axis. x = -1; y = -0.5; text(x,y...

How to display the equation in the graph.Here the slope is found to be 0.35(if i am not wrong) and i want to display the equation as y=0.35x on the graph .Any answers will be highly appreciated

There are two options. First option is to use the text function to display the text on the axis. x = -1; y = -0.5; text(x,y...

29 days ago | 1

| accepted

Answered

how can I reuse http connection when use webread to avoid server time wait?

You will need to rely on java to accomplish this. A simple script to open a network connection and read from it is as follows. ...

how can I reuse http connection when use webread to avoid server time wait?

You will need to rely on java to accomplish this. A simple script to open a network connection and read from it is as follows. ...

29 days ago | 0

Answered

Generating multiple max values from various data sets

You can use the sort function to sort the variable in descending order. I changed the max to a cell array, so that you can stor...

Generating multiple max values from various data sets

You can use the sort function to sort the variable in descending order. I changed the max to a cell array, so that you can stor...

1 month ago | 0

| accepted

Answered

Pass Variable to Calling App

Please refer to the following documentation on how to pass data between appdesigner apps. https://www.mathworks.com/help/matlab...

Pass Variable to Calling App

Please refer to the following documentation on how to pass data between appdesigner apps. https://www.mathworks.com/help/matlab...

1 month ago | 0

| accepted

Answered

Implementing multiple selection and selection range for UITable in App Designer

I have no answer for your first question. For the second question, I was able to do range selection using left click and draggi...

Implementing multiple selection and selection range for UITable in App Designer

I have no answer for your first question. For the second question, I was able to do range selection using left click and draggi...

1 month ago | 0

Answered

How to parse an Nx1 string array without looping through N

Since the pattern in your string seems to be the same, you can use the format specification to convert the string directly to da...

How to parse an Nx1 string array without looping through N

Since the pattern in your string seems to be the same, you can use the format specification to convert the string directly to da...

1 month ago | 0

Answered

How to check for gaps between datetimes in list of files in a folder?

This is likely an issue with the precision of the double value. instead of checking for exact equality you may want to check for...

How to check for gaps between datetimes in list of files in a folder?

This is likely an issue with the precision of the double value. instead of checking for exact equality you may want to check for...

1 month ago | 0

| accepted

Answered

How to buy a license anterior to 2020a (2019b) ?

In my experience, if you have current matlab license, you would be able to download the prior release version that are still sup...

How to buy a license anterior to 2020a (2019b) ?

In my experience, if you have current matlab license, you would be able to download the prior release version that are still sup...

1 month ago | 0

| accepted

Answered

How to use use = logical operator on multiple values?

As suggested by stephen, you can simply use ismember A1 = ismember(A,A([1 2 4]));

How to use use = logical operator on multiple values?

As suggested by stephen, you can simply use ismember A1 = ismember(A,A([1 2 4]));

1 month ago | 0

| accepted

Answered

Trying to extract numbers between bounds and counting them

If you can use logical vectors then you can do it like this x = randi(100,10,1); count = sum(x >= 60 & x < 70); If you have t...

Trying to extract numbers between bounds and counting them

If you can use logical vectors then you can do it like this x = randi(100,10,1); count = sum(x >= 60 & x < 70); If you have t...

2 months ago | 0

Answered

Replacing a whole row of a matrix with specific characters

a = char(randi([0 1],4000,5)+'0'); % create a n by 5 char array b = bin2dec(a); % convert it to decimal b(b>25) = b(b>25) - 'A...

Replacing a whole row of a matrix with specific characters

a = char(randi([0 1],4000,5)+'0'); % create a n by 5 char array b = bin2dec(a); % convert it to decimal b(b>25) = b(b>25) - 'A...

2 months ago | 0