Community Profile

photo

Nick Choi

Last seen: Today Active since 2017

Statistics

All
  • Knowledgeable Level 3
  • Solver
  • First Review
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer

View badges

Content Feed

View by

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

1 year ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

3 years ago

Answered
Rapid Accelerator Mode fatal error C1128
You can add '/bigobj' to the compiler options in the 'Code Generation' pane of the 'Configuration Parameters' in Simulink to a...

6 years ago | 2

| accepted

Answered
PWM generation - triangle carrier problem
It is tough to say without a reproduction model but this could be due to differing sample times between the two signals going in...

6 years ago | 0

Answered
generating square wave to control a motor without using simulink
The 'writePWMDutyCycle' function in the MATLAB Support Package for Arduino would allow you to control the duty cycle/pulse width...

6 years ago | 0

Answered
change the modulation in commrfsatlink
The following section of the example page provides information on how some of the model's parameters can impact the performance ...

6 years ago | 0

Answered
using a table in a "from workspace block" in simulink
If the data is loaded into MATLAB as a table, you could import the signal data using a 'From Workspace' block on the column or r...

6 years ago | 0

Answered
Update a fixed dimension vector Simulink
A block that may be helpful for this could be the 'Assignment' block: <https://www.mathworks.com/help/simulink/slref/assignme...

6 years ago | 0

| accepted

Answered
I have no idea how to do this simulink, please help
Figure 1 shows you what the model should look like so you essentially just need to reconstruct that model in Simulink. This ...

6 years ago | 0

Answered
What is the computation Power of Matlab Online?
The following documentation pages should help give you a better idea of what tasks can be performed using MATLAB Online. Thi...

6 years ago | 0

Answered
Simulink Real Time/Simulink Test using National Instruments RT hardware?
Simulink Test allows you to develop and execute simulation-based tests for your Simulink models and these tests can be run with ...

6 years ago | 0

Answered
Use of soundcard in Simulink!
The 'Audio Device Reader' block in the Audio System Toolbox would allow you to read audio from your computer's sound card. The f...

6 years ago | 0

| accepted

Answered
How do i create a simplified version of a continuous time unit step function?
The following example shows how to create a variety of signals such as the unit impulse, unit step and unit ramp signals: <ht...

6 years ago | 0

Answered
How to input a signal to a Simulink Function within a Stateflow Chart?
Based off of the error message, it seems as though the function call block is set to have a sample time of zero. Since the input...

6 years ago | 0

Answered
Implementing neural network functions on HDL
The following documentation page provides a list of the MATLAB functions that are supported for HDL code generation: <https:...

6 years ago | 1

| accepted

Answered
Activate a pulse generator from an if block
You could use a 'Compare to Constant' block to compare the signal/variable against the specified value and this could be used to...

6 years ago | 0

Answered
Difficulty using the CWT function
It seems as though the error messages are being generated because the new and old versions of the 'cwt' function are being calle...

6 years ago | 0

Answered
How can I find Model-Based Calibration Toolbox in MATLAB 2017b?
Is 'Model-Based Calibration Toolbox' displayed when you execute the following command? >> ver If it is not displayed by...

6 years ago | 0

| accepted

Answered
Missing simscape power systems
Is 'Simscape Power Systems' displayed when you execute the following command? >> ver If it is not displayed by the 'ver...

6 years ago | 1

Answered
Simulink name logged runs
You can name a run with a string to facilitate data inspection by utilizing a function call similar to this one: Simulink.s...

6 years ago | 0

Answered
How to model a slack(swing) bus in simuilink model?
The 'Load Flow Bus' block can be used to specify the parameters of a swing bus: <https://www.mathworks.com/help/physmod/sps/pow...

6 years ago | 0

Answered
How to solve "No rule to make target `rtiostream_utils.c' " error while building model in Simulink?
Without a reproduction model or screenshots of the entire error, it is somewhat difficult to determine a potential root cause. H...

6 years ago | 0

Answered
How can I pass a Figure Handle to Matlab code embedded in Simulink, and capture that plot as an Image in the loop?
If you are planning to generate code from the Simulink model, you will not be able to use the 'plot' function because it is not ...

6 years ago | 0

Answered
R2017b Visual Studio 2017 can't link model files when compiling simulink
This issue seems like it may be related to the following external bug report: <https://www.mathworks.com/support/bugreports/1...

6 years ago | 0

| accepted

Answered
Understanding usrpe3xxToneReceiverML.m example
In the 'Transmit a Tone Signal from the FPGA' section of the example, there is a line that says "Note that the simultaneous tran...

6 years ago | 0

Answered
I have successfully generated the code from the matlab, but I don't kown how to use these codes in the embedded equipment.
When you generate C/C++ code through MATLAB Coder, you can specify the target platform for the code and you can configure it to ...

6 years ago | 0

| accepted

Answered
put coodinate in image map
The following documentation page provides an example of how to display topographic data in MATLAB: <https://www.mathworks.com/h...

6 years ago | 0

| accepted

Answered
How can I force a Custom Storage class for a parameter inside StateFlow?
If you are looking for how to use custom storage classes or custom data types in Simulink, the following documentation link prov...

6 years ago | 0

Answered
Hou to make a simulink lookup table model for different break point?
Simulink comes with several shipped lookup table blocks. The following documentation page contains a list of the various lookup ...

6 years ago | 0

Answered
How can explain the relation between mdlDerivatives output and mdlOutputs in S-function simulink
As described in this documentation link, 'mdlDerivatives' is an optional method that can be used to compute the derivatives for ...

6 years ago | 1

Load more