Answered

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...

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...

mer än ett år ago | 0

| accepted

Answered

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...

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...

mer än ett år ago | 1

Answered

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...

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...

mer än ett år ago | 0

| accepted

Answered

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...

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...

mer än ett år ago | 1

| accepted

Answered

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...

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...

mer än ett år ago | 1

Answered

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...

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...

mer än ett år ago | 1

| accepted

Answered

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...

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...

mer än ett år ago | 1

Answered

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...

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...

mer än ett år ago | 0

| accepted

Answered

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...

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...

mer än ett år ago | 0

Answered

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...

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...

mer än ett år ago | 0

Answered

how to fix an error:'' error in port widths or dimensions.''

It looks like you're using elementwise multiplication in the Gain blocks. If you're doing matrix math, you have to choose a matr...

how to fix an error:'' error in port widths or dimensions.''

It looks like you're using elementwise multiplication in the Gain blocks. If you're doing matrix math, you have to choose a matr...

mer än ett år ago | 0

| accepted

Answered

How to move a marker on a figure?

There appear to be two problems: 'XData' and 'YData' have to be followed by the actual xdata and ydata for the new point. Sinc...

How to move a marker on a figure?

There appear to be two problems: 'XData' and 'YData' have to be followed by the actual xdata and ydata for the new point. Sinc...

mer än ett år ago | 1

| accepted

Answered

shading graph using gui

It looks like patch should provide what you need. The examples in the documentation for that function provide some nice examples...

shading graph using gui

It looks like patch should provide what you need. The examples in the documentation for that function provide some nice examples...

mer än ett år ago | 0

Answered

how to Stabilize Analog Read value on simulink?

It looks like you're holding the Running RMS block in reset, based on the switch configuration in your screenshot. If that is th...

how to Stabilize Analog Read value on simulink?

It looks like you're holding the Running RMS block in reset, based on the switch configuration in your screenshot. If that is th...

mer än ett år ago | 0

Solved

Fibonacci sequence

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Input...

mer än ett år ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displayed ...

mer än ett år ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

mer än ett år ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

mer än ett år ago

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...

mer än ett år ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

mer än ett år ago

Answered

Simulink Subsystem False Results

It's creating gain blocks for you. But they all have a size of 0 wide/0 tall, so they're invisible. See how Position is defined ...

Simulink Subsystem False Results

It's creating gain blocks for you. But they all have a size of 0 wide/0 tall, so they're invisible. See how Position is defined ...

mer än ett år ago | 0

| accepted

Answered

apply an array of data repeatedly to a signal in simulink

Assuming your inputs are regularly spaced, you should be able to use a Repeating Sequence Stair block. You can specify the updat...

apply an array of data repeatedly to a signal in simulink

Assuming your inputs are regularly spaced, you should be able to use a Repeating Sequence Stair block. You can specify the updat...

mer än ett år ago | 1

| accepted

Answered

Logartihmic Amplifier in Simulink

If you just want to implement this generically, it shouldn't be hard to build up from the mathematical definition. Divide Vin b...

Logartihmic Amplifier in Simulink

If you just want to implement this generically, it shouldn't be hard to build up from the mathematical definition. Divide Vin b...

mer än ett år ago | 0

| accepted

Answered

Half Wave Rectifier Simulink

If you just want a rough model of a half wave rectifier, you can use a Saturation block, from the Simulink/Discontinuities libra...

Half Wave Rectifier Simulink

If you just want a rough model of a half wave rectifier, you can use a Saturation block, from the Simulink/Discontinuities libra...

mer än ett år ago | 0

| accepted

Answered

Is it possible to use the Selenium library, webdriver.Chrome in MATLAB?

When I wanted to do something like this recently, I was able to run the Python file containing the Selenium calls from MATLAB. R...

Is it possible to use the Selenium library, webdriver.Chrome in MATLAB?

When I wanted to do something like this recently, I was able to run the Python file containing the Selenium calls from MATLAB. R...

mer än ett år ago | 0