Community Profile # Daniel Pereira

Last seen: 3 months ago Active since 2013

Industrial Engineer, with more than 10 years experience in power plants modelling, and H2020 innovation projects.

#### Statistics

All
• • • • • • • • • • • • #### Content Feed

View by

I need to limit a data set to 1000 points between -pi and pi
I think this is what you want: t = linspace(-pi,pi,100); y = 10*cos(2*t); plot(t,y); % Pretty plot set(gca,...

5 years ago | 0

To simulate my work
What is the question here and what is that code? I suggest you to be tidier with code, making it easier to debug and to maint...

5 years ago | 0

Question

Error using FreezePanes in Excel
Hello. I am trying to do such a simple operation as freezing panes in excel, providing the split row and the split column. I ...

5 years ago | 4 answers | 0

### 4

Question

In Simulink, which option is more efficient, regarding computational cost?
I've got a Simulink model with a division of two signals that are *always greater than or equal to 0*. I know that this division...

5 years ago | 0 answers | 0

### 0

How to plot wind rose according to u and v components
You can use my tool *Wind Rose* Pretty simple, I think. <http://www.mathworks.com/matlabcentral/fileexchange/47248-wi...

7 years ago | 0

programming with matlab and .NET C#
I would suggest what I think is the easiest way: If MODELFUN is a matlab function handle, use inside your "matlab method" the...

7 years ago | 0

| accepted

Question

bsxfun vs for loop. Code Optimization.
Hello everyone. I'm trying to optimize some code that is running in a _for_ loop. The code is the following: for k=... ...

7 years ago | 1 answer | 0

### 1

Fit in matlab equations
Did you try z = x^-3; p = polyfit(z,y,1) then yy = p(1) * z + p(2); which has the form yy = a * x.^...

8 years ago | 0

I have data which class is char. I need to write this data in word doc. Which function I need to use?

8 years ago | 0

| accepted

reading a number from a string
x = sscanf(str,'(%d,%d) IS [%d] %s %d,%d %s'); num = x([1 2 3 5 6]); when using str='(0020,0013) IS  ...

8 years ago | 0

Question

Running an exe built with rapid simulation target with Initial states as input
I've compiled a simulink model with rapid simulation target, so now I have an .exe file. As usually, I can tell the exe to ru...

8 years ago | 0 answers | 0