Submitted

Simscape Flexible Beam Stress (BeamStressLib)

Improved "General Flexible Beam" of Simscape, that compute von-Mises stress at beam ends for rectangular beams.

9 days ago | 15 downloads |

Answered

How can I fix my plots?

Hello, few notes: Please, insert the code as TEXT (in the proper 'code' format), not as an image, otherwise it is difficult to ...

How can I fix my plots?

Hello, few notes: Please, insert the code as TEXT (in the proper 'code' format), not as an image, otherwise it is difficult to ...

2 months ago | 0

Answered

How can I improve Simscape flexible beam results like FEM results

I developed a Simscape library for estimate Von-Mises stress of beams. Have fun!

How can I improve Simscape flexible beam results like FEM results

I developed a Simscape library for estimate Von-Mises stress of beams. Have fun!

3 months ago | 0

| accepted

Answered

Output shows an 'ans=', I don't know where did i go wrong

Suppress output the function when you call it, like follow: bday_calc; % add the ; symbol

Output shows an 'ans=', I don't know where did i go wrong

Suppress output the function when you call it, like follow: bday_calc; % add the ; symbol

3 months ago | 0

| accepted

Answered

Add text description to point of a selected subplot

Just point to the first subplot using simply: subplot(2,1,1); text(x,y,'my text here') % EDIT: This method does not work, see ...

Add text description to point of a selected subplot

Just point to the first subplot using simply: subplot(2,1,1); text(x,y,'my text here') % EDIT: This method does not work, see ...

3 months ago | 0

| accepted

Answered

Process raw data using lowpass filter

You are confusing the filter coefficient with the raw signal. Try this: [b,a] = butter(order,fcut/(fs/2),'low'); sig_a_filt =...

Process raw data using lowpass filter

You are confusing the filter coefficient with the raw signal. Try this: [b,a] = butter(order,fcut/(fs/2),'low'); sig_a_filt =...

3 months ago | 0

| accepted

Question

How to specify correct fontsize of text according to plot boundary coordinates

I create a generic plot in matlab. Then I want to create a text into the plot. The text must have a exact size (length in x dire...

3 months ago | 1 answer | 0

Answered

How to model a peltier cell on simulink ?

Two solutions: Refer to scientific papers and built your own thermal model Have a look to the buil-in MATLAB model using the p...

How to model a peltier cell on simulink ?

Two solutions: Refer to scientific papers and built your own thermal model Have a look to the buil-in MATLAB model using the p...

5 months ago | 0

Question

Recognition of colored percentage of a white paper using Image Processing

Hello, I want to estimate the percentage of the following image (see attachment), where there are different colors and intensit...

6 months ago | 1 answer | 0

Question

Code_Aster interface for MATLAB

Does someone developed a tool interface for Code_Aster (or Salome-Meca) open source FEM software with MATLAB?

8 months ago | 0 answers | 0

Question

Linearize error simulink model in Matlab function (cannot linearize abs())

I want to linearize a simulink model that use a MATLAB Function. Inside the MATLAB function I apply abs(x) and this create a fa...

11 months ago | 0 answers | 0

Question

Linearize Simulink model simultaneously on signal with multiple channels

I want to linearize a Simulink model for a given input and a given output from MATLAB script, using linearize and linio command....

11 months ago | 0 answers | 0

Question

How to visualize a Structural Reduced Order model (Superelement) from PDE library

I created a SuperElement (strucural Reduced Order Model from PDE toolbox), and now I want to use it as follow: Attach one super...

11 months ago | 0 answers | 0

Answered

Compute Craig Bampton model reduction using structural PDE toolbox of MATLAB (FEM SuperElements - Component Mode Synthesis)

It seems that with the 2020a release, Mathworks introduced the superelements! You can find the documentation here. If you have...

Compute Craig Bampton model reduction using structural PDE toolbox of MATLAB (FEM SuperElements - Component Mode Synthesis)

It seems that with the 2020a release, Mathworks introduced the superelements! You can find the documentation here. If you have...

11 months ago | 0

| accepted

Answered

Error using DynamicSystem/lsim

Please, do not use symbolic variables for the time array. t=0:0.01:10; H=tf(4,[5 5]); vi=(10.*(sin(10*t))).*(t<=18); v0=lsim...

Error using DynamicSystem/lsim

Please, do not use symbolic variables for the time array. t=0:0.01:10; H=tf(4,[5 5]); vi=(10.*(sin(10*t))).*(t<=18); v0=lsim...

11 months ago | 2

| accepted

Question

Differences between "Moist air" and "Gas" library of Simscape

Hello, assuming that I set the gas constant equal to the air constant (in order to adopt air properties in "Gas" library), what...

11 months ago | 1 answer | 0

Answered

How can I filtrate recorded time acceleration signal with 4th order Butterworth low pass filter ??

If you sampled the signal at 200Hz it is useless adopt a low-passfilter at 100Hz since 100Hz is already the maximum bandwidth th...

How can I filtrate recorded time acceleration signal with 4th order Butterworth low pass filter ??

If you sampled the signal at 200Hz it is useless adopt a low-passfilter at 100Hz since 100Hz is already the maximum bandwidth th...

11 months ago | 0

| accepted

Question

How to compute partial derivative for Lookup table in Simulink

Hello, I have a 2D look-up table in simulink, let's say for example z=f(x,y). How can I compute the partial derivative of such...

11 months ago | 0 answers | 0

Answered

Differences between "Constraint Force" and "Total Force" of Weld Joint

As far as I understood, in this specific case are exactly the same.

Differences between "Constraint Force" and "Total Force" of Weld Joint

As far as I understood, in this specific case are exactly the same.

11 months ago | 0

| accepted

Answered

Declare variables from Matlab function workspace to Simulink worskpace

At the end I found the solution to "send" the variables from the function workspace to the simulink workspace. ModelName='NameO...

Declare variables from Matlab function workspace to Simulink worskpace

At the end I found the solution to "send" the variables from the function workspace to the simulink workspace. ModelName='NameO...

11 months ago | 0

| accepted

Answered

Modify colobar values into a Function: error "Attempt to extract field 'YTick' from 'mxArray'"

Partially solved. Instead of call the colorbar and then modify it, I do it toghedar as follow: colorbar('Ticks',ValForColorbar,...

Modify colobar values into a Function: error "Attempt to extract field 'YTick' from 'mxArray'"

Partially solved. Instead of call the colorbar and then modify it, I do it toghedar as follow: colorbar('Ticks',ValForColorbar,...

11 months ago | 0

| accepted

Answered

Phase difference removal by using Filtering, butterworth, filtfilt command

I think that you just need to do: Fs = 500; fcutlow = 6; % low cut frequency in Hz fcuthigh = 14; % high cut freq...

Phase difference removal by using Filtering, butterworth, filtfilt command

I think that you just need to do: Fs = 500; fcutlow = 6; % low cut frequency in Hz fcuthigh = 14; % high cut freq...

11 months ago | 0

| accepted

Question

Modify colobar values into a Function: error "Attempt to extract field 'YTick' from 'mxArray'"

Hi, into a Matlab Function in Simulink environment I want to modify the value shown by a colorbar (adding min and max values ...

11 months ago | 1 answer | 0

Question

Colorbar not supported in Simulink "MATLAB function" surf plot

I have a custom surf plot written into a "MATLAB function" in simulink environment and I add the 'colorbar' in the plot to see t...

11 months ago | 1 answer | 0

Question

How can I improve Simscape flexible beam results like FEM results

Hello, I want to improve the results of "Simscape Mechanics Explorer". In particular: I want to magnify small displacements of...

12 months ago | 1 answer | 0

Question

Enable and Disable input/output subsystem's ports in Simulink

Hello, I created a subsystem with a mask with multiple "checkbox". The mask is used to interact with the subsystem (e.g. set co...

12 months ago | 1 answer | 0

Question

If Action Block that create a stairstep signal in simulink

Hello, I have two questions: I use a If Block to "cut" the signal and not perform some operations (not depicted below). Is it ...

12 months ago | 1 answer | 0

Question

Run Matlab FUNCTION at the end of Simulink simulation

Hello, in a simulink simulation I compute some signals. At the end of the simulation, when the system reach the steady-state c...

12 months ago | 1 answer | 1

Question

Problem of color interpolation of surf plot

Hello, I notice problems with color intepolation using surf plot. There is a similar problem described here, but I can't modif...

12 months ago | 1 answer | 0

Answered

Plot different length vectors on the same x-axis

So you have to do something like plot(matix1(:,1),matix1(:,2)); hold on; plot(matix1(1:173,1),matix2(:,2)); plot(matix1(1:173...

Plot different length vectors on the same x-axis

So you have to do something like plot(matix1(:,1),matix1(:,2)); hold on; plot(matix1(1:173,1),matix2(:,2)); plot(matix1(1:173...

12 months ago | 0

| accepted