Beantwortet
How to run 2 scrips simultaneously, one for sending output to lab equipment and one for reading sensor output.
I'm not sure about licensing restrictions, but in Windows (probably similar for other OS) you can right click on the MATLAB ico...

fast 6 Jahre vor | 0

Beantwortet
How can i get the control effort/output of the PID?
So I see you are on the right track, you are trying to define the appropriate closed loop transfer functions but using MATLAB's ...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot multiple graph
I don't have the symbolic toolbox, but I could get your code to work by modifying as follows. Note I did not include the line sy...

fast 6 Jahre vor | 0

Beantwortet
Unrecognized function or variable 'FirstDerivative'
It looks like you are either missing the function FirstDerivative or maybe it is in a directory somewhere but that location is ...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to find x and y component of a vector
Yes I think you should be able to recover the x and y components using the real and imaginary parts, that is using MATLAB's real...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
How can i work with a matrix that present floating points
I don't think the problem is float versus integer. MATLAB is very forgiving on this. Are you sure that your bat_N values are neg...

fast 6 Jahre vor | 0

Beantwortet
RMSD between two signals
Looking at your variables in the workspace I see the signals probeWith and probeWithout. Each arrays with two columns. I assume ...

fast 6 Jahre vor | 0

Beantwortet
Real Time Plotting in Gui by taking data from Simulink
One way to do this is using get_param to get data from run time objects Please see https://www.mathworks.com/help/simulink/ug/...

fast 6 Jahre vor | 0

Beantwortet
How can I solve a linear system of equation Ax=b where A and b are changing in a for loop
You could do it like this: % preallocate arrays to hold results x = zeros(9,360); A = zeros(9,9,360); b = zeros(9,1,360); ...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
pulse disturbance signal generator
How are you running your simulation? Is it in Simulink? In Simulink you can use a From Workspace block to create an arbitrary s...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Recursive Forecast with VAR Model
You could do it in a loop something like this (I'm assuming the ith forecast value is a scalar, otherwise you may have to adjust...

fast 6 Jahre vor | 0

Beantwortet
How to Add Headings to a list of data
In general, MATLAB doesn't provide for column or row labels for matrices. You could put the array into a MATLAB table and label...

fast 6 Jahre vor | 0

Beantwortet
Problem to read csv file with a blank line
You should be able to use the headerlines property value pair in your call to readtable to skip the first 5 lines something like...

fast 6 Jahre vor | 0

Beantwortet
while loops , error in use of the word else and else
At least one problem you have is in the loop: while fluid_volume <= (tank_volume_max - v_tol ) Fluid_height = fluid_height...

fast 6 Jahre vor | 0

Beantwortet
Bode plot obtained from measured data is different from that obtained from transfer function
There are a number of problems with your problem formulation. I think the primary one may be that your system, as defined, is u...

fast 6 Jahre vor | 0

Beantwortet
How to make a 3D Matrix
You can also do it like this, for example for a 2 by 4 by 3 A = ones(2,4,3).*reshape(1:3,1,1,3)

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
checking the existence of timetable and merge
If it is a question of whether the variables have been created at all, you can check whether they exist using the exist MATLAB c...

fast 6 Jahre vor | 0

Beantwortet
How I finish a recursive function?
In your recursive function there must finally be a branch where you encounter a return. Once it hits this return, it will back ...

fast 6 Jahre vor | 0

Beantwortet
MATLAB time (seconds) vs velocity graph plotting questions
Hi First, I am glad that although you are asking for help on homework you have made a good attempt on your own and are now jus...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
How can I fix "Undefined operator '-' for input arguments of type 'matlab.ui.Figure'"
figure is a MATLAB command that will open up a new figure. MATLAB is telling you, it does not make any sense to subtract 1 from...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
simple liquid spraying circuit
I would suggest thinking about it like this. Start with an integrator to represent the tank. The tank level is the integral of ...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
flatten structure array if values are identical
As a very general suggestion you should be able to make use of the MATLAB unique command for this purpose. Obviously a lot more ...

fast 6 Jahre vor | 0

Frage


Control number of decimal places in app designer uitable with table array data
I am using a uitable created using app designer. The Data property is assigned to a MATLAB table array. Some of the columns in...

fast 6 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
frequency shift property of the of FT
As currently written you are trying to produce a time vector starting at 0 with increments of 1e-9 (Tc/2) up to a value of -5e8 ...

fast 6 Jahre vor | 0

Beantwortet
Hello I'm student and i have a project using matlab and i don't know anything about using matlab and the project is about representing output of signals. Can any one help me with matlab ??
Once you have learned enough MATLAB then please attempt the assignment. If you then have specific problems with the code you ha...

fast 6 Jahre vor | 0

Beantwortet
Please help me understand whether I have set up a loop and performed an RMSE (Root Mean Square Error) calculation correctly
You could do something like this. I just made up some numbers to try the code. Also, obviously variable names like columnOfDat...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Hello I'm student and i have a project using matlab and i don't know anything about using matlab and the project is about representing output of signals. Can any one help me with matlab ??
I would recommend starting here: https://www.mathworks.com/learn/tutorials/matlab-onramp.html

fast 6 Jahre vor | 0

Beantwortet
Matlab onramp problem 44934 plot damped sinusoid
The code that you show seems to be OK. I suspect that one of the arguments (y or t) in the script or function that is calling pl...

fast 6 Jahre vor | 0

Beantwortet
How can one "summarize a matrix with the first four columns"?
Here is one way to do it. There might be some clever way to fully vectorize (eliminate the loop) this, but this will work if pe...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Dot indexing is not supported for variables of this type+ App designer
Usually when I unexpectedly get that error message it is because the object is empty. Are you sure there are folders that match ...

fast 6 Jahre vor | 0

| akzeptiert

Mehr laden