# Daniel Vieira

**Statistics**

RANK**1,339**

of 272,973

REPUTATION**39**

CONTRIBUTIONS

**7** Questions

**18** Answers

ANSWER ACCEPTANCE **
14.29%
**

VOTES RECEIVED**8**

RANK

of 18,436

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

i want to add a line when i press 'escape' button the program stops, because this program is infinite. Also what is the benefit of '"drawnow();" because i did not get it.

in matlab, a plot is normally only drawn when the script ends, so if you are plotting and constantly overwritting you would see ...

2 months ago | 0

number of figure windows that are currently open?

I do something like this: for k=1:K % my code here figure; % my plot here fig=gcf; % get figure handle ...

2 months ago | 0

How can I save a line plot as an image with specific pixel size?

to save a matlab figure as a png image use the print function: figure; plot(x,y) fig=gcf; print(fig,'filename.png','-dpng') ...

2 months ago | 0

| accepted

Hello guys! I need a little help with 3d plotting. I need to do the coloring for the surface like this, but I cant get the yellowy parts to their correct positions.

ok... what do you mean by "correct position" for the yellow parts? where is the correct? strange things I noticed: 1) the "U...

10 months ago | 0

| accepted

Why are the results of forward and predict very different in deep learning?

I ran into this exact problem, and I think I found a solution, I'll discover it when my model finishes training... As others ...

1 year ago | 4

| accepted

How to deconvolve an image in MATLAB? i was using weiner filter for this purpose but didn't get the results.

Looking superficially this code seems right, would have to go through the theory to check. But you can also use the function wie...

3 years ago | 0

Optimization in which the function varies with its own solution

I'm not sure I fully understood it because to me it still seems simple. Instead of writing: objFun=@(X) Fuel_cell_weight*x(1)+ ...

3 years ago | 1

Trying to find the error in logic

the Threshold parameter doesn't matter at all in your code. you binarize the image with the threshold, measure solidity of blobs...

3 years ago | 0

Hi . I am new to DNN. I use deep neural network for binary classification but returns all zeros or ones.

I recommend normalizing your predictors, they range from 10^-5 to 10^9, pretty insane. I'd rather work with the log10 of that (r...

3 years ago | 0

| accepted

How to use transfer learning on U-net created in Matlab?

what you made works only for sequential models, where each layer is necessarily connected to the next in the same order that the...

3 years ago | 0

How can i extract all labeled objects in a image and save every object as an image?

with the image labeler you made a table where the first column is the image file, and the others are each label, each cell conta...

3 years ago | 0

How can I detemine the presence of some colors (e.g white, light brown, dark brown, red, blue gray and black) in a piture like attached one?

the easiest way would be using the Color Thresholder App to create function for the each color you want.

3 years ago | 0

Interpolate Points of a 3D Point Cloud?

try the scatteredInterpolant, should work fine with these points (not so much if you had a closed surface)

3 years ago | 0

How can i calculate the ( area ,... ) automatic for gray scale image using Matlab code ??

you don't calculate areas in grayscale directly, you need to binarize to indicate which pixels count in the area and which dont....

3 years ago | 2

CNN seems to be too inaccurate to classify my images. Is there an alternative that I can explore?

Alexnet is the simplest of the pretrained deep learning models, you might want to try others (resnet, inception, etc). You mi...

3 years ago | 0

| accepted

Reshaping a 2 d matrix into a 3 d matrix row wise.

A=randi(10,100,99); % example of what your matrix might be B=permute(reshape(A',9,11,[]),[2 1 3]) % solution

3 years ago | 0

Question

MATLAB App Designer does not render new fonts

I needed an illegible font for an app that requires a password, and there wasn't any in the App Designer default fonts, so I don...

3 years ago | 1 answer | 0

### 1

answerQuestion

what is the minimal Visual Studio 2017 community installation required to pass coder.checkGpuInstall test?

Up until a few weeks ago I had a full installation of Visual Studio in the default path, and everything worked. Then I made an u...

3 years ago | 0 answers | 0

### 0

answersQuestion

possible problem with matlab installer for linux (2018b)

Hi, I'm trying to install matlab 2018b on ubuntu gnome 16.04, it seems quite strainght-forward, but I've run into a problem and ...

4 years ago | 0 answers | 1

### 0

answersQuestion

what happens if a license expires while a script is still running?

I have a neural network training on a cluster right now. I estimated that on my personal machine it would take 10 days running; ...

5 years ago | 1 answer | 0

### 1

answerQuestion

how to interpret the plotsomnd output?

Hi, I'm experimenting with clustering algorithms in my work, right now I'm trying SOM's, and I found it confusing to interpr...

5 years ago | 0 answers | 0

### 0

answersQuestion

how to compile pretrained networks?

I have a code like this: function results=myNet(filename) load(filename) %loads data from mat file load('net.mat') ...

5 years ago | 0 answers | 0

### 0

answersHow can I prune the weak learners in an ensemble learner?

I'm having a similar problem, it appears this doesn't work anymore on 2017a.

5 years ago | 0

Question

issue with MATLAB Coder and cell arrays

I wrote a code to track multiple faces, and I'm trying to put it on a raspberry pi. I solved every issue pointed by the Coder ex...

6 years ago | 1 answer | 0

### 1

answerSolved

Parasitic numbers

Test whether the first input x is an n-parasitic number: <http://en.wikipedia.org/wiki/Parasitic_number>. ( _n_ is the second in...

6 years ago

Solved

Raise a polynomial to a power

In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...

6 years ago