Answered
Change dimensions of 2d data
You can use the imresize function to scale the image up or down. a = rand(3281,3164); b = imresize(a,0.91024);

5 years ago | 0

Answered
save workspace variable dynamically
I am not exactly sure what is it you are trying to do, but I assume you want to save a file where the variable names are the tic...

5 years ago | 0

| accepted

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

5 years ago | 1

| accepted

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

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

5 years 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/...

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

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

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

5 years ago | 1

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

5 years ago | 2

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

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

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

5 years 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]...

5 years 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,[]);

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

5 years ago | 2

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

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

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

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

6 years ago | 1

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

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

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

6 years ago | 1

| accepted

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

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

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

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

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

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

6 years 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]));

6 years ago | 0

| accepted

Load more