Respondida
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);

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 2

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 2

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

| aceptada

Respondida
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]));

casi 6 años hace | 0

| aceptada

Cargar más