Community Profile

photo

Pramil


Last seen: 25일 전 2023년부터 활동

Followers: 0   Following: 0

통계

  • Knowledgeable Level 1
  • First Answer

배지 보기

Feeds

보기 기준

답변 있음
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 ...

29일 전 | 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 ...

29일 전 | 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”...

29일 전 | 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...

대략 1개월 전 | 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...

대략 1개월 전 | 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...

10개월 전 | 0

답변 있음
Problem with signal processing on sinewave using Simulink
You can set the sample time in sine wave block to (2*pi)/32 to get 32 samples of sine waves per cycle as input to your function ...

10개월 전 | 0

답변 있음
fitting curve for Simulink
You can use the Matlab Function block and define the function as per your need : function y = process_pid_output(u) if u ...

11개월 전 | 0

답변 있음
How to rotate a T-Junction using MATLAB code?
To rotate the T-junction block in Simulink/Simscape so that the C port is on the left, you can use the command 'set(gcb,'orienta...

11개월 전 | 0

답변 있음
How do i model a non linear differential equation in simulink?
Taking u(t) as unit step, you can shift x'''(t) one side and u^2(t) to the other and try the following : where fcn is Matlab...

11개월 전 | 0

| 수락됨

답변 있음
Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in PROYEK (line 78) distance = jarak_pelanggan(last_point, pelanggan_
last_point here contains a value of 0 when the code runs and matlab indexing starts with 1, hence the error : while ~isempty(...

11개월 전 | 0

답변 있음
Problems using Plot function
If you want to plot all A B C on the same plot you can use hold on like this : A=[1.1,1.2,1.3]; B=[2.1,2.2,2.3]; C=[3.1,3.2,3...

11개월 전 | 0

답변 있음
Plot data and keep the maximum values
you can try and fit a regression line to the scatter plot of your data to obtain a simple curve that approximates the trend in y...

11개월 전 | 1

답변 있음
How can I get the number of values within a range?
Your code is almost correct. You just need to update the values of lo_edge and hi_edge inside the loop to reflect the new range....

11개월 전 | 1

답변 있음
how to consider only the integer part discarding the exponent part
What you can do is multiply "a" with 10^9 first and then proceed to find max(a). Like this : a = [1 23 56]*10^(-9); % given ar...

11개월 전 | 0

답변 있음
Solving a complicated symbolic equation
You can do the following : syms x; A = 3; B = 9; solution = vpasolve(B*x*sinh(x)==A, x, 1) The vpasolve function allows yo...

11개월 전 | 1