Question

Convert matrix of RGB double values to image

I have a matrix which contains RGB values which range from 0 to 1. I would like to turn it into an image, but if I use uint8 the...

presque 3 ans ago | 1 answer | 0

Question

Other drones besides Parrot Mambo FPV

I am looking to buy a camera drone and process the images in Matlab. Since this is new to me, I would like easy integration with...

presque 3 ans ago | 4 answers | 0

Question

Formatted string plus list of numbers using sprintf

I would like to display comma-separated records like the following, Record1,2,8,3,5,2,6,3,7,7,7 Here's my attempt, but is ther...

presque 3 ans ago | 2 answers | 0

Question

In evaluating a neural net, should NMSE be based only on test subset of data?

In answers like this, Greg Heath suggests using the normalized mean square error, NMSE, to compare the performance of different ...

environ 3 ans ago | 1 answer | 0

Question

How to work with function inputs which are structures with different fields

I have a function. The inputs are multiple structures which have some of the same fields but also some different fields. I may p...

environ 3 ans ago | 1 answer | 0

Question

Solve an overdetermined problem with lsqlin

I am having trouble formatting the inputs to lsqlin. I would like to solve for x in Cx=d, where C is 100 by 5 and d is 100 by 10...

environ 3 ans ago | 1 answer | 0

Question

How to set disableDefaultInteractivity for all axes?

In Matlab 2018b and later, the cursor is set to automatically interact with the plot. This messes up my plots (accidentally movi...

environ 3 ans ago | 4 answers | 2

Question

How to capture many warnings at startup

All my mfiles on my path have gotten accidentally relocated on my computer, so that now when I start Matlab, I get warnings like...

environ 3 ans ago | 0 answers | 0

Question

How to tell how when an executable was first run? (Imposing a 30-day demo period)

I made an executable of some Matlab code using the Complier. I would like the executable to stop working after a 30-day demo per...

plus de 3 ans ago | 0 answers | 0

Answered

griddata interpolation just within a certain distance

One option might be to use objective mapping such as Kirill Pankratov's implementation objmap (described here, code here). You w...

griddata interpolation just within a certain distance

One option might be to use objective mapping such as Kirill Pankratov's implementation objmap (described here, code here). You w...

plus de 3 ans ago | 0

Question

Seeking faster objective mapping of noisy, irregularly spaced data

If you have noisy data sampled at irregular x,y locations, you can use objective mapping to make a smooth map of the results. I ...

plus de 3 ans ago | 0 answers | 0

Answered

griddata not creating a smooth interpolation

You may want to try an outside function, objmap, which lets you choose how smooth the map is in x and y, and how much error to a...

griddata not creating a smooth interpolation

You may want to try an outside function, objmap, which lets you choose how smooth the map is in x and y, and how much error to a...

plus de 3 ans ago | 0

Question

Best Matlab file format for input into a RIP

I am creating an image in Matlab that I would like to print on a large-format printer that has a RIP (Raster image processor). T...

plus de 3 ans ago | 0 answers | 0

Answered

generating CIELab Image

Here is an example of how to write a tiff file containing 3 known Lab values. As a check, open the tiff file in Photoshop: the d...

generating CIELab Image

Here is an example of how to write a tiff file containing 3 known Lab values. As a check, open the tiff file in Photoshop: the d...

plus de 3 ans ago | 1

Question

Generate an image containing a pattern of random shapes

I would like to generate an image like this containing random shapes where I specify the size range, color, and type of shape su...

plus de 3 ans ago | 1 answer | 0

Question

Avoid partial blocks in block processing with blockproc

If you block process an image using blockproc and the desired block size does not divide evenly into your image size, it seems t...

plus de 3 ans ago | 1 answer | 0

Answered

Parameter sweep without nested for loop

Here is one solution using allcomb, but is there a better way? By "better" I mean "easy to understand what the code is doing, ye...

Parameter sweep without nested for loop

Here is one solution using allcomb, but is there a better way? By "better" I mean "easy to understand what the code is doing, ye...

plus de 3 ans ago | 0

| accepted

Question

Parameter sweep without nested for loop

The following parameter sweep has many nested loops. How can I eliminate the nested loops with linear indices, but be able to ac...

plus de 3 ans ago | 1 answer | 0

Question

Is it possible to zoom in during Preview in Image Acquisition Tool?

I am using the Image Acquisition Tool to preview a camera image so that I can focus the camera. I would like to zoom in on the i...

plus de 3 ans ago | 1 answer | 0

Question

How to turn off drawrectangle?

I used drawrectangle to draw a rectangle on an image and adjust its size and position, but then I can't figure out how to turn o...

plus de 3 ans ago | 1 answer | 1

Question

Colormap engineering to highlight small values

I would like to construct a colormap for a set of data where the values range from [0,100] but I want the values in the [0,20] r...

plus de 3 ans ago | 2 answers | 0

Question

If I want to make a prediction from a neural net, do I have to use the same random number generator seed?

I have a question about the state of the random number generator when I make a prediction with a neural network. Let's say I loo...

plus de 3 ans ago | 1 answer | 0

Answered

'apply' 'reverse' in mapminmax

<https://www.mathworks.com/help/deeplearning/ref/mapminmax.html mapminmax> is a scaling that is applied to your input data to ma...

'apply' 'reverse' in mapminmax

<https://www.mathworks.com/help/deeplearning/ref/mapminmax.html mapminmax> is a scaling that is applied to your input data to ma...

plus de 3 ans ago | 0

Question

Where in documentation does it say that fitnet([]) gives a linear model?

I have seen Greg Heath's posts such as <https://www.mathworks.com/matlabcentral/answers/296663-my-neural-network-is-getting-trai...

plus de 3 ans ago | 2 answers | 0

Question

Checking if minimum of a matrix occurs on the diagonal

For a matrix, I would like to check if the minimum value of each row is found on the diagonal. The minimum value can occur more ...

plus de 3 ans ago | 1 answer | 0

Question

Using R^2 results to optimize number of neurons in hidden layer

I am trying to find the optimal number of neurons in a hidden layer following <https://www.mathworks.com/matlabcentral/profile/a...

plus de 3 ans ago | 1 answer | 0

Answered

Setting a title for a legend

If you limit yourself to one output from the legend command, then the title is positioned correctly...as you noted in your origi...

Setting a title for a legend

If you limit yourself to one output from the legend command, then the title is positioned correctly...as you noted in your origi...

plus de 3 ans ago | 2

Answered

Can calculate AAPE values for my training data, validation data and testing data from my trained network as part of the process, like calculation of performance?

If you train a network as follows, [net, tr, y, e] = train(net,x,t) then the tr.trainInd, tr.valInd, and tr.testInd fiel...

Can calculate AAPE values for my training data, validation data and testing data from my trained network as part of the process, like calculation of performance?

If you train a network as follows, [net, tr, y, e] = train(net,x,t) then the tr.trainInd, tr.valInd, and tr.testInd fiel...

plus de 3 ans ago | 0

Answered

How to Use Neural Network After Deployment?

I have added some comments to an example in the <https://www.mathworks.com/help/nnet/ref/sim.html sim> documentation which does ...

How to Use Neural Network After Deployment?

I have added some comments to an example in the <https://www.mathworks.com/help/nnet/ref/sim.html sim> documentation which does ...

plus de 3 ans ago | 1

Answered

CIELAB values from TIFF image

Here is what I used on a 16-bit CIELab TIFF file based on the 16-bit ICCLAB documentation <https://www.mathworks.com/help/matlab...

CIELAB values from TIFF image

Here is what I used on a 16-bit CIELab TIFF file based on the 16-bit ICCLAB documentation <https://www.mathworks.com/help/matlab...

presque 4 ans ago | 1