Simulink, modeling of force which is a function of AC voltage

A
Anderson85 · Apr 28, 2020 · 1.9K views
Question
I am relatively new in the matlab/simulink world. I want to model a force (output) which is dependent on the square of AC Voltage (voltage) * Constant F(V) = K * (V^2) AC voltage = 1 V, 1 KHz in my attempts to model above equation, the scope does not show the results from time zero, but from 9.99 to 10 sec. I don't understand how to model this force. I request for the help from simulink Gurus.
Expert Answer
Profile picture of Kshitij Singh
Kshitij Singh PhD Expert
Answered Aug 27, 2026
To clarify your question, are you using Simulink or Simscape to model this? Also, are you running into problems with the actual equation, or just with the Scope results?
Regarding the Scope: that's a common problem. The default Scope parameters preserve a buffer of only 5000 data points. You can imagine that a 1 kHz signal requires more than 5000 points, so your Scope ends up only showing the last 0.01 seconds or so of simulation.
To change this,
  1. Open the Scope
  2. Click the "Settings" button (the gear)
  3. Go to the "History" tab and uncheck (or change the value of) the "Limit data points to last"
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!