Posts by Nino Pereira • 121 points
5 posts
-
3
votes2
answers3580
viewsA: How to sync github?
In your local directory (assuming you already have the same project cloned locally with 'git clone') just do git pull This command synchronizes the local directory by pulling everything again from…
-
1
votes1
answer707
viewsA: MATLAB image processing
You cannot convert grayscale images back to rgb because you do not have enough information. Many different combinations of RGB values convert to the same grayscale level, so if all you have is the…
-
0
votes1
answer758
viewsA: How to make an average of a curve?
Maybe your question is how to adjust the points to a curve. If so you can use the polyfit function: p = polyfit(x,y,n) returns the coefficients of the polynomial of degree n that best fits the data…
matlabanswered Nino Pereira 121 -
2
votes1
answer1597
viewsA: Plot a graph of the loading and unloading of a capacitor in MATLAB
If you want to make the theoretical graph just continue in the same way that started, asking for the values and showing the figure for one and the other case. You can show the result in the same…
-
3
votes2
answers1180
viewsA: Drawing of numbers with exception
Following the same reasoning of colleague Maniero, I suggest that you repeat the sampling until you get a valid value. See the code below. Note: one should use srand to initialize the sample to…