Community Profile

Last seen: 1 day ago
149 total contributions since 2014

View details...

Contributions in
View by

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

1 day ago | 0

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 = ...

2 days ago | 1

| accepted

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) =...

2 days ago | 1

| accepted

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-...

3 days ago | 0

| accepted

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...

3 days ago | 1

| accepted

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...

4 days ago | 0

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...

4 days ago | 0

| accepted

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))...

4 days ago | 0

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

4 days ago | 0

| accepted

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

8 days ago | 0

| accepted

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...

9 days ago | 0

| accepted

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...

10 days ago | 0

| accepted

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...

12 days ago | 1

| accepted

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...

13 days ago | 0

| accepted

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...

25 days ago | 0

| accepted

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...

26 days ago | 0

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...

26 days ago | 1

| accepted

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. ...

26 days ago | 0

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

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

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

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

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

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

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

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

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

Converting cell array to matlab datetime format
we can replace the gmt with utc t = {'03.08.2003 23:00:00.000 GMT+0200'}; t = strrep(t,'GMT','UTC'); t = datetime(t,'InputFor...

2 months ago | 1

| accepted

Assign mean and max value to a heatmap color bar
You can specify the color limits in your heat map %h = heatmap(__,'ColorLimits',[0 10])

2 months ago | 1

| accepted