photo

Peter O


Automotive Industry

Last seen: 대략 2개월 전 2011년부터 활동

Followers: 0   Following: 0

메시지

Primarily specializing in electrical systems and optimization for MATLAB and Simulink.

Programming Languages:
Python, C++, C, Javascript, MATLAB, HTML, CSS, Arduino, Shell, Fortran

통계학

All
  • Treasure Hunt Participant
  • Knowledgeable Level 4
  • 3 Month Streak
  • Introduction to MATLAB Master
  • Community Group Solver
  • 5-Star Galaxy Level 1
  • GitHub Submissions Level 1
  • First Submission
  • Thankful Level 1
  • First Answer
  • Commenter
  • Promoter

배지 보기

Feeds

보기 기준

제출됨


CompareStructures
Function for comparing the fields in a struct or object datatype

3개월 전 | 다운로드 수: 1 |

Thumbnail

답변 있음
Synchronous Machine pu fundamental rotor alignment in Park transformation
Hello, The short answers: #1:Use the 90-degree lag convention for the block. #2: A mirror on currents usually occurs if the...

6개월 전 | 1

| 수락됨

답변 있음
select specific data from a dataset and exporting it to excel
Excel permits a maximum of just over a million rows, so unfortunately your two million won't fit in a single column. If your...

10개월 전 | 0

답변 있음
Sum of sines in phasor form
You can treat them as the sum of 2 phasors. Assuming they always have equal frequencies then it's a vector sum of the real and i...

대략 1년 전 | 0

답변 있음
Why does differentiating PID feedback break the system?
Numerical differentiation is a very tricky thing to get right for a lot of controls cases. The reason is because unless you have...

2년 초과 전 | 0

답변 있음
How to use python code with numpy in Matlab?
To my knowledge, the Anaconda distribution remains an unsupported version of Python for MATLAB. Numpy fails with Anaconda becaus...

2년 초과 전 | 1

| 수락됨

답변 있음
In wind turbine with induction generator system, I keep getting NAN EM torque. How to fix this?
So you're generating, fixing the rotor speed of the machine to 1.09 per unit and supplying the machine from an infinite 3-phase ...

2년 초과 전 | 0

답변 있음
convert 12 hour data to 24 hour datetime data for timetable
Once imported, you could query the AM/PM column, and if the answer is PM, add 12 hours to the value, and then delete the AM/PM c...

2년 초과 전 | 0

답변 있음
How to stop simulink from terminating with position violation error?
Wrap it in a try catch block? %for loop try % set_param calls and stuff... outs = sim('model', ...) catch disp...

2년 초과 전 | 0

| 수락됨

답변 있음
write a Program to model random motion of electron
You can use randi to place the 'electrons' at random points on the grid by picking the grid indexes at random. The distribution ...

2년 초과 전 | 0

| 수락됨

답변 있음
fread function for reading 10 bit raw file.
To confirm, you're saying that result of importing the file as UINT8 is double the array size as importing as UINT16? That's to ...

2년 초과 전 | 0

| 수락됨

문제를 풀었습니다


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

대략 3년 전

답변 있음
How to plot recursive definition in Matlab/Simulink?
Sure. Use a while loop and call functions for each. However, for this problem, consider using a for loop. It will be much more e...

3년 초과 전 | 0

| 수락됨

답변 있음
How to simulate a limit switch in SIMULINK?
Try something like this. It's a little quickly done, so I'm sure there's room for optimization or elegance, but this works. You...

3년 초과 전 | 1

| 수락됨

답변 있음
How to create pulsed sine waves in SIMULINK - that turns off at intervals?
Assuming that the sine wave is allowed to restart at an arbitrary position, I think the cleanest way might be route the sine wav...

3년 초과 전 | 1

| 수락됨

답변 있음
random select n elements from n arrays
With a little programming and a for loop you can handle all possible combinations. If you want to be able to draw repeated ele...

3년 초과 전 | 0

답변 있음
I am not able to understand how to implement this into simulink.
Fortunately, that current map looks very smooth. Consider using the 2D lookup block: https://www.mathworks.com/help/simulink/slr...

3년 초과 전 | 0

| 수락됨

답변 있음
how to do model prediction using python in matlab
So it looks like it's launching into Python fine. A couple things to try: Standard Python or Anaconda? Sometimes Anaconda doesn...

3년 초과 전 | 0

답변 있음
Derivative of state '1' in block 'model4/PMSM /Integrator' at time 1.09996 is not finite
This error can occur when the feedback loop creates positive feedback. As you step through time your derivative input into the i...

3년 초과 전 | 0

답변 있음
Multi phase motor with more than one FEM-Parameterized Rotary Actuator ?!?
Federico. A two or three phase machine is better expressed using a machine model such as the ones found in the Simscape Electri...

3년 초과 전 | 0

답변 있음
Problem with fmincon in case of using variables have various order
Ghost, Good observations. Yes, c has the greatest sensitivity. Sometimes it's possible to get a better fit by massaging the in...

3년 초과 전 | 0

답변 있음
Segmentaion fault while calling Python script using system()
A couple thoughts: Regarding your python call: are you on a recent version of MATLAB? You can call the script directly using MA...

3년 초과 전 | 0

답변 있음
How to fit integral function
Hi, A couple things I notice: integral2 expects max and min bounds, but you're passing it the entire grid. Instead of x and y,...

3년 초과 전 | 0

| 수락됨

답변 있음
store data from different structures into one variable
Hi, Yes this is very possible to do. Are are 320 values stored as a vector in the acc field? If so, try using the arrayfun to l...

3년 초과 전 | 0

| 수락됨

답변 있음
Move diary in file to newfolder
Hi Armin, Try this at the start of your code. You may need to ensure the path exists before creating the diary file. You should...

3년 초과 전 | 1

| 수락됨

답변 있음
Start Simulink Simulation non-blocking with outputs
Hi, Yes sim is a blocking command. You can configure a simulation to dump its output to the workspace and access it from there....

3년 초과 전 | 0

답변 있음
Detecting a local minima within a specific splice of data
I'm very unfamiliar with ECGs. Two ideas: Is the Q peak always the "lowest"? Flip/Invert the signal to search for the peak of Q...

3년 초과 전 | 0

답변 있음
Hi, I'm having trouble solving a non-liner 2nd order ODE, could someone help me? I'm not able to assemble the code.
Ah, this is a nice heat transfer homework problem! The function you're looking for in MATLAB for coding up the solution is calle...

3년 초과 전 | 0

| 수락됨

답변 있음
Increasing datatip display precision (MATLAB 2019a)
Quick and dirty way (works in 2021, I think should still work in 2019): Create a data tip and right-click on it. Edit content a...

3년 초과 전 | 3

| 수락됨

답변 있음
missing parameter to change fixed step size via code
CurrentTimeStep = get_param(gcs, 'FixedStep'); set_param(gcs,'FixedStep','0.1') gcs is a MATLAB call for "get current system"....

3년 초과 전 | 0

| 수락됨

더 보기