Community Profile

photo

Peter O


Automotive Industry

Last seen: 21日 前 2011 以来アクティブ

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

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

Statistics

All
  • Treasure Hunt Participant
  • Knowledgeable Level 3
  • 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

バッジを表示

Content Feed

表示方法

解決済み


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...

約1ヶ月 前

回答済み
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...

2ヶ月 前 | 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...

2ヶ月 前 | 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...

2ヶ月 前 | 0

| 採用済み

回答済み
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...

2ヶ月 前 | 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ヶ月 前 | 0

| 採用済み

回答済み
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ヶ月 前 | 0

| 採用済み

回答済み
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

| 採用済み

回答済み
From workspace does not receive data properly.
Are you using the auto solver? What is the smallest timestep taken at the start? It's possible that the solver needs to be confi...

3ヶ月 前 | 0

回答済み
Accessing specific values in every matrix in a cell array
Sure, use cellfun: A = {[1,2,3],[4,5,6],[7,8,9];[10,11,12],[13,14,15],[16,17,18]}; B = cellfun(@(x) x(3), A) disp(B)

3ヶ月 前 | 1

回答済み
Use EV Battery Cooling System
It sounds like the file is not on MATLABs search path. https://www.mathworks.com/help/matlab/matlab_env/what-is-the-matlab-searc...

3ヶ月 前 | 0

回答済み
How do you create a matrix Aij where each value is determined by a formula?
It sounds like a for loop would build your matrix nicely: n = 2000; sz_i = n; sz_j = n; A = zeros(sz_i, sz_j); % Preallocate...

4ヶ月 前 | 0

回答済み
Simulink asynchronous generator voltage input clarification
Hi Abd, For an induction machine to operate, you must be able to generate a rotating field on both the rotor and stator. The fi...

4ヶ月 前 | 1

| 採用済み

回答済み
What is the difference between in64, int32, and int8. Are there anymore 'int' functions? (int means integer right?)
Difference between %d, %f, or any other %? These are formatting control codes. %d prints a number in decimal (base 10) format, ...

12ヶ月 前 | 0

| 採用済み

回答済み
How to display a Y value
For interactive use of the graph, consider use of the datatips functionality. In R2018 and above, if you hover your cursor over ...

12ヶ月 前 | 0

| 採用済み

回答済み
index exceeds matrix dimensions and the toolbox code error
I'd guess that n is larger than the size of P. In the first couple lines it seems that P only gets allocated if the swing angle ...

12ヶ月 前 | 0

回答済み
How to apply modifiers to error messages
You've almost got it. The TeX formatting is correct. You need to include the interpreter and modality of the window in a struct ...

12ヶ月 前 | 1

| 採用済み

回答済み
How to impulse response including unit step function
The Heaviside step function is defined Substitute a logical check on t for u(t). Should be extendable to a shifted step fu...

12ヶ月 前 | 0

回答済み
How Do I Determine which Group Variables Correspond to the Results of SplitApply
Consider using the second argument output from findgroups? [G,ID] = findgroups(A) also returns the unique values for each group...

12ヶ月 前 | 0

| 採用済み

もっと読み込む