Community Profile

photo

Daniel

MathWorks

Last seen: 8 jours il y a Actif depuis 2023

Trainer in Simulink and HDL Coder.

Spoken Languages:
English

Statistiques

All
  • 6 Month Streak
  • Knowledgeable Level 3
  • Solver
  • First Answer

Afficher les badges

Content Feed

Afficher par

A répondu
The name of these symbols in Simulink
You can find the type of any Simulink block by double-clicking it. The block parameters will show you the name in the upper left...

8 jours il y a | 0

A répondu
Use polyspace to open or write .m files
If you're just trying to read and write .m files, which are plaintext scripts, you can do this with any plaintext editor. If you...

environ 2 mois il y a | 0

A répondu
How to model a transfer function in Simulink?
The Discrete Filter block under Simulink/Discrete should support your needs. You'll just need to simplify numerator and denomina...

2 mois il y a | 1

| A accepté

A répondu
Extracting multiple subarrays from a given array in a loop, when the corresponding mulitple start- and end-point pairs are given
You can create a cell array with curly braces: cellArray = {}; Elements of a cell array can be anything, for instance variable...

3 mois il y a | 0

| A accepté

A répondu
I need to add the Microchip PolarFire FPGA "non-ES" version as a HDL WorkFlow Adviser target: "MPF300T-1FCG1152".
I believe devices are loaded into HDL Coder based on the devices supported by the latest tool version MathWorks was able to test...

3 mois il y a | 0

A répondu
Changing the value of column in a file if matches certain criteria of another value
You can approach programming problems in the same basic way as word problems in math or science. What do you need to do? You've...

3 mois il y a | 0

A répondu
Solver error during simulation in matlab simulink R2023a
It's going to be hard to answer this without a little more information, so if you can upload the model that might help. That sa...

3 mois il y a | 0

A répondu
Cannot find hdlcoder_mixed_nfp_hfp.slx under examples
There's a box on the upper right of the doc page which says "Copy Command". Copying this command and pasting it into your MATLAB...

3 mois il y a | 0

A répondu
Breaker operation error in parallel solar system
I woud guess that Rsh_array5pc is, at some point during the simulation, dropping to a value very near zero, such that the value ...

3 mois il y a | 1

| A accepté

A répondu
Changing discontinued cwtft function to cwt
It looks like cwtft was removed quite a while back (more than 5 years ago as far as I can tell). It might be a good idea to cont...

4 mois il y a | 0

A répondu
How to get Simulink block name
As documented in the get_param documentation, BlockPaths = get_param(gcs,'blocks') will return the list of blocks at the level o...

4 mois il y a | 0

A répondu
Flip Flops and other logic circuits
The crucial features of paired (transistor) NOR gates which make a flip-flop work are: Propagation delay. Simulink models thing...

4 mois il y a | 0

A répondu
How to plot certain columns from a complex matrix
Assuming that your data input is a simple matrix of double, then: Determine the columns you want to plot. Since I'm assuming yo...

4 mois il y a | 0

A répondu
What is the output sample rate of the below given code?
Per the comments, the output sample rate is 4800, but the more important question would be what the upsampling ratio is. The rc...

4 mois il y a | 0

A répondu
New to simulink, how do I import data from a CSV to be used in a simulation?
The issue you're running into is that Simulink can't import data without knowing the timebase for it. Every input entry has to g...

5 mois il y a | 0

A répondu
How to solve "invalid setting for parameter 'Gain' " while trying to simulate with only integral gain of a PID controller?
Although there's not a lot that can be said without seeing the actual model and script involved, the error "Invalid setting ... ...

5 mois il y a | 0

A répondu
How do you take a set of values in a matrix and normalize them to a 360 degree rotation?
Am I right in thinking you would want to do something like this? [1 0 0 0 1 0 0 0 1] -> [0 90 180 270 0 90 180 270 0] or [1 0...

5 mois il y a | 0

A répondu
Filtering out y values
If you're just looking for visual zoom, you can use the ylim command to set the y-limits on a graph. xlim works similarly for x-...

6 mois il y a | 0

A répondu
Simulink start takes long time to compile
In general, setting reference models to Accelerator mode can be useful if they're making your model run slowly. This generates a...

6 mois il y a | 0

| A accepté

A répondu
How to change specific numbers to 0
There are two ways you can select elements of an array in MATLAB. Pass in an array of valid indices. "Valid" means that they're...

6 mois il y a | 0

| A accepté

A répondu
Cannot connect to model 'time_simulink'; please try Update Diagram (Ctrl-D). Caused by: Error in 'time_simulink/Upsample': All sample times for this block must be discrete. C
You're trying to upsample a continuous input. The input has to have a discrete sample time before it can be upsampled. The sampl...

6 mois il y a | 0

| A accepté

A répondu
I have a problem with the angle function
Toward the end of the plot, your angle starts increasing by more than between successive samples. unwrap just compresses the di...

6 mois il y a | 1

A répondu
Extract segments from signal
As a caution, I'm not at all sure that this is the most efficient way to do what you're asking. That said, it looks like you wan...

6 mois il y a | 0

| A accepté

A répondu
Issue with Y, Cb and Cr image. Only Y (luma) image looks red, Cb looks green and Cr looks red. But converting the YCbCr image using ycbcr2rgb, give original image
It looks to me like the only issue is in the "Display YCbCr image" region of your script. imshow expects an RGB input matrix. It...

7 mois il y a | 1

| A accepté

A répondu
How to Install Matlab on WSL Ubuntu 18.04
Depending on the specifics of your setup, it should be possible, yes. Setup: I have an Ubuntu 20.04 install (cat /etc/os-releas...

7 mois il y a | 1

A répondu
Plot variable across two dimensions
The basic concept appears to be interleaving all the lines on the same plot. The key to that is hold on, which lets you superimp...

7 mois il y a | 1

| A accepté

A répondu
Error when simulating an adaptive control system with an inverse reference model: Derivative is not finite.
The derivative to a transfer function is the input. So the error is indicating that the input to the highlighted block is not fi...

8 mois il y a | 1

A répondu
How can I find error part in simulink
Each Inport in a system or subsystem has a number assigned. The error is telling you that all your inports need to be numbered c...

8 mois il y a | 0

| A accepté

A répondu
issue with model operating points: when restarting the simulation it immediately stops because the stopping criteria already met
If you want to pause rather than stopping, you can connect the output of the Relational Operator to a Terminator, and set a brea...

8 mois il y a | 0

A répondu
Plot 3d plot with different colors depending on the X and Y combination
You're interested in creating a bar chart where you can individually control the color of each bar, correct? If so, you can sta...

8 mois il y a | 0

Charger plus