Community Profile

photo

Benjamin Thompson


Last seen: 3 días hace Con actividad desde 2015

Programming Languages:
C++, C, MATLAB
Spoken Languages:
English

Estadísticas

  • Pro
  • Knowledgeable Level 5
  • 12 Month Streak
  • Revival Level 2
  • First Answer

Ver insignias

Content Feed

Ver por

Respondida
Problem integrating python in simulink
Have you tried debugging the MATLAB code in the block? Maybe pout is empty. https://www.mathworks.com/help/simulink/ug/debuggi...

alrededor de 1 mes hace | 0

Respondida
Modelling and Simulation of a Centrifugal Compressor
Here is a link to the Mathworks onramp training. The Simulink Onramp training is very helpful. https://matlabacademy.mathwor...

alrededor de 1 mes hace | 0

Respondida
Converting Matlab function (mscript fx) to a model.
Here is a link to the Mathworks onramp training. The Simulink Onramp training is very in learning how to use the product. ht...

alrededor de 1 mes hace | 0

Respondida
How to open Tonatiuh output .DAT files in MATLAB?
fid = fopen('yourfilename.dat', 'r'); A = fread(fid, 'uint8=>uint8'); fclose(fid); Then the data is in A as bytes. If you ...

alrededor de 1 mes hace | 0

Respondida
Having trouble in running this code. What should I do next?
Here are fixes for the first few lines so that dlmread works. But not sure what you are trying to do after that. Calling resha...

alrededor de 1 mes hace | 0

Respondida
Fourier transform of input data with varying sampling frequency
FFT only works with constant sample time by definition. Try using the interp1 function to resample the data set into a fixed sa...

alrededor de 1 mes hace | 1

Respondida
Nonlinear impact model of a tennis racket and a ball
Try the MATLAB or Simulink OnRamp training, then attempt to create your model. If you run into problems then ask specific quest...

alrededor de 1 mes hace | 0

Respondida
When building a C++ program using MATLAB Engine in Visual Studio, is it possible to specify -R2017b?
It seems like it should be possible, provided you can install Visual Studio 2017 Professional or Enterprise Edition: https://ww...

alrededor de 1 mes hace | 1

Respondida
Convert 4 bytes to single in Matlab Simulink blocks
If you have the Embedded Coder toolbox there is the Byte Pack, Byte Reversal, and Byte Unpack blocks. If not, you could try imp...

alrededor de 1 mes hace | 0

Respondida
Define Pointer in Bus (structure)
Simulink busses cannot use pointers or references. Can you use an array of integers? int b[10]; Simulink must know the si...

alrededor de 1 mes hace | 0

Respondida
Address operator on arrays in stateflow
Can you try using &data_a[0], &data{b[0], and &data_c[0]?

alrededor de 1 mes hace | 0

Respondida
S Function Builder Error.
This part could mean that the compiler or linker is having trouble with the space in the path name: No rule to make target `E...

alrededor de 1 mes hace | 0

Respondida
How to call a function that uses a function pointer argument from Simulink?
Simulink only supports certain data types as inputs to blocks: integers, double, single, busses, enumerations, or arrays of tho...

alrededor de 1 mes hace | 0

Respondida
How do you find the MTLAB code
See the documentation for tf and bode. Try setting up and plotting your transfer function. Ask questions if you have further p...

alrededor de 1 mes hace | 1

| aceptada

Respondida
Improving speed in construction of a matrix
Not sure where your data for A is coming from, or where the output of B is going to. if each A -> B mapping is independent try ...

alrededor de 1 mes hace | 0

Respondida
My MATLAB keep crashing while i am importing an python model
You would need to use your python package manager to get your h5py package and HDF5 packages to match up: Installation — h5py 3...

alrededor de 1 mes hace | 0

Respondida
Simulating 2 instances of the same model
In the configuration parameters for your reference models make sure the option in "Model Referencing" called "Total number of in...

alrededor de 1 mes hace | 0

Respondida
Implementing the speed of wind into an aircrafts 6 DOF model
You would set the Aerodynamic Forces and Moments block mask parameter or Input Axes to Wind. Then you get a fifth input to the ...

alrededor de 1 mes hace | 0

| aceptada

Respondida
Converting double into custom data type (eg int14)
The embedded microcontroller or processing using the data can probably only work with 8-bit or 16-bit integers in doing calculat...

alrededor de 1 mes hace | 0

Respondida
Simulink "Edit" Dashboard block - but for strings?
If you are not really trying to "link" the dashboard block to other blocks, then maybe the "String Constant" source block would ...

alrededor de 1 mes hace | 0

Respondida
Mujoco Simulink Blockset Contact Detection
Since it is a Mathworks product you might try contacting Mathworks Support using a support request: Contact Us - MATLAB & Sim...

alrededor de 1 mes hace | 1

Respondida
Unexpected behavior using mask popup controls with externally defined enum and get_param
It may be a race condition between the callback getting evaluated and other Simulink diagnostics getting generated related to an...

alrededor de 1 mes hace | 0

Respondida
Is online documentation (2023) a terrible idea?
A lot of people in the defense community work on air gapped networks or computers. When Microsoft changed their Visual Studio d...

4 meses hace | 0

| aceptada

Respondida
fft2 results don't match the analytical Fourier transform results
Your problem is 201 by 201 samples in size? Making the size a power of 2. So use 256.

12 meses hace | 0

Respondida
Real Time Low Pass Filtering
All digital filters working in real time must have some delay, this is a law of filtering in general. The amount of delay depen...

alrededor de 1 año hace | 0

Respondida
Image analysis for speckle pattern
It is possible, try looking over this example: https://www.mathworks.com/help/images/correcting-nonuniform-illumination.html ...

alrededor de 1 año hace | 0

Respondida
How to break data in to groups using while loop?
Even better, use the vectorization features in Matlab to count NaNs in each row all at once. nanCounts = sum(isnan(matrix),1); ...

alrededor de 1 año hace | 0

Respondida
Replacing specific block with subsystems
Here is one way. I think you would just use a constant block rather than From Workspace because From Workspace is looking to us...

alrededor de 1 año hace | 0

| aceptada

Respondida
I need to know how to use the for command to calculate y=2/x
x = 1:10; y = 2 ./ x;

alrededor de 1 año hace | 0

Respondida
How do I re-use values calculated in a while loop?
Theta1 and Theta2 have not been defined and given a value at the first reference. You should assign an initial value to Theta1 ...

alrededor de 1 año hace | 0

Cargar más