回答済み
Why is Simulink Variant Manager unable to find the Simulink.VariantControl object that controls the active choice of Simulink.VariantVariable objects?
Hi Yingao, I faced the same issue with MATLAB R2021b, updating to the next version that is MATLAB R2022a resolved the issue fo...

1年以上 前 | 0

回答済み
Table transform - rows to variable number of columns
Hi Lauren, To achieve the said transformation without using the “for” loop, you can do the following in MATLAB R2021b: data ...

1年以上 前 | 0

回答済み
Bus elements with multiple dimensions
Hi Alborz, To create a Bus Object “B” that contains a single Bus Element “S” which itself represents a structure with three ti...

1年以上 前 | 0

| 採用済み

回答済み
Getting transfer function from simulink circuit using linear analysis tool
Hi Ben, Assuming you are getting this error when you drag and drop the “System Object” directly onto the “MATLAB Base Workspac...

1年以上 前 | 0

回答済み
Modularized masked Matlab functions of a plant model with nonlinear mpc
Hi Osamah, Yes, using modularized masked blocks to represent different components of a plant in Simulink is possible, you can ...

1年以上 前 | 0

回答済み
How to find package functions that are shadowed?
Hi per, This is one of the limitations of the “which” function and as of MATLAB R2024a, using the syntax: which(‘some.packag...

1年以上 前 | 1

回答済み
Real Frequency Technique program
Yes, follow the steps outlined in the MATLAB example in the following link to create your new matching components: https://www...

1年以上 前 | 0

回答済み
Calling a Function Within A Mask
Hi katherine, As per my understanding you want to pass your “mask variable(s)” through some function before passing them to a ...

1年以上 前 | 0

回答済み
Assigning elements or an array within a Bus
Hi Paul, The method you're using for assigning values to the elements within the “Bus Structure” involves a loop to assign val...

1年以上 前 | 0

回答済み
How can I create an isodose band from the imaged provided?
Hi Naomi, Assuming plotting an “isodose” curve means drawing contours at specific intensity levels. Here's how you can do it u...

1年以上 前 | 0

回答済み
Block Wise FFT on Audio Signal
Hi Sree, You can use the built-in MATLAB functions “fft” and “ifft” to address the described problem. Here is a code that wo...

1年以上 前 | 0

回答済み
how to plot in simulink
Hello Prajwal N, What Manikanta Aditya suggests works but if you do not want to save your output and just want to plot, you ...

2年弱 前 | 0

| 採用済み

回答済み
variable capacitance configuration with the look up table
Hi mohamed, Assuming you want to control your “Variable Capacitor” block with the help of the “Lookup Table” block, you can do ...

2年弱 前 | 0

回答済み
Change specific colour in an image
Hi Phat, What you are doing is correct, but in MATLAB pixel values are normalized that means each pixel ranges from “0” to “1”...

2年弱 前 | 0

回答済み
Lookup table object from another object
Hi Thomas, It is not a bug. As of MATLAB R2023b, it is not possible to directly reference a “Lookup Table” object through ano...

2年弱 前 | 0

回答済み
Changing the size of an array in a referenced masked model
As of MATLAB R2023b there is no possible way to pass value into a parameter of a masked model with dimensions other than the one...

2年弱 前 | 0

回答済み
How model a heat transfer between to different materials in simscape
For modelling heat transfer between two cubes as rightly suggested by Carlos, you can use two “Conductive Heat Transfer” blocks ...

2年弱 前 | 0

回答済み
Manage multiple data sources in Simulink
In scenarios where multiple Simulink models are involved, what I like to do is summarised in the following points: I save the ...

2年弱 前 | 0

回答済み
Simulink Error fzero must always return a real value
The error that you are getting is because at “x=1” for certain combinations of “m”,” n”,” xego” and “yego” the denominator of th...

2年弱 前 | 0

回答済み
How to read data form simulink in time
To access block data in this case ‘position’ value and use this to limit ‘velocity’, you can use a “feedback loop”. You can do t...

2年弱 前 | 0

回答済み
I need help in creating a stress-load diagram of three different materials
Use the “readtable” function to load the tabulated data into MATLAB and then use the “plot” function to plot the data. Here is...

2年弱 前 | 0

回答済み
Is there a easy possibility to create a mechanical switch in simscape? (parameter-based)
Hey Felix, well there is no such one block available in Simscape Mechanical that can achieve that but instead you can create a s...

2年弱 前 | 0

回答済み
How to import several input signals from spreadsheet into one inport?
To import the signals through a single “inport” block, you can do the following: Extract the data from the excel sheet by usi...

2年弱 前 | 0

回答済み
Display spectrum of sine wave in Simulink
You are getting smeared peaks due to spectral leakage. I assume that you are using the “Filter bank” method for frequency resolu...

2年弱 前 | 0

回答済み
How can I save the waveform read from the oscilloscope for future reference?
Hey, when you use “readWaveform”, the data is loaded into MATLAB's workspace as variables. However, once you close MATLAB or cle...

2年弱 前 | 0

回答済み
Non linear EOM Using Simulink
So, the issue can be resolved through a workaround by not taking “n” as an input parameter, but a block parameter. You can do ...

2年弱 前 | 0

回答済み
file size for encoded image by huffman
I assume that you are using MATLAB's built-in “huffmandict” function to create a Huffman dictionary based on the symbol probabil...

2年弱 前 | 0

回答済み
Can the variable selector block operate on variable-sized data?
Yes, there is a way around this problem. Use a "For Each Subsystem" block, which allows you to apply the FFT block to each colum...

2年弱 前 | 0

回答済み
Code only works as expected with 1 value, else, "FunctionLine update: Unable to convert expression into double array" error
Hey, as you mentioned, the problem is indeed happening because of the “laplace” function which is unable to convert the “dft” en...

2年弱 前 | 0

回答済み
working with angles and wraparound
To overcome the issue of a "spike" in the delta graph when crossing from 360 to 0 degrees, you can use the concept of angular wr...

2年以上 前 | 0

さらに読み込む