Respondida
Why isnt my Matrix being populated with values
Your code fails on this statement: [allState{N:-1:1}] = ndgrid(1:E); So it is unable to enter the loop to update omega. T...

alrededor de 4 años hace | 0

Respondida
How do i create a username and password login system that takes multiple accounts
Use strcmp to compare string contents rather than their lengths. Not that MATLAB is probably not very secure for taking passwor...

alrededor de 4 años hace | 0

Respondida
How to specify any regions in a 3D-Plot with different colors
Use index vectors: Igreen = denorm_pred < 0.5; Ired = denorm_pred > 1; Iyellow = denorm_pred >= 0.5 & denorm_pred <= 1; ...

alrededor de 4 años hace | 0

| aceptada

Respondida
Converting time and velocity to frequency then plotting
The function for the discrete fast fourier transform in MATLAB is fft. Typically you will subtract the mean value from the sign...

alrededor de 4 años hace | 0

| aceptada

Respondida
High Pass Digital Filter Design
Try using the Filter Designer App in the Signal Processing Toolbox.

alrededor de 4 años hace | 0

Respondida
I have a state state with two inputs and two output and I want to convert this model into one transfer function. how can I do that?
Something like this, using the Varying State Space block in the Control System Toolbox library. Or there is a discrete version ...

alrededor de 4 años hace | 0

Respondida
After C Code Generation Using Simulink/Embedded Coder, How to Use it in My C/C++ Project?
If you have ert.tlc selected as the System Target File in the Code Generation parameters, then go to Templates and make sure the...

alrededor de 4 años hace | 0

| aceptada

Respondida
Import Values from Excel Sheet to Simulink Subsystem Constant Block
You can use one constant block to create a vector of numbers.

alrededor de 4 años hace | 0

Respondida
Error while using "Generate S-function" for Simulink subsystem for targeted hardware (Rasberry Pi)
MinGW64 is a compiler for Windows 64-bit code generation. Does "mex -setup" offer a compiler for for Rasberry Pi? There is pro...

alrededor de 4 años hace | 1

Respondida
Line plot with two different color based on the condition of the value
Try to use this example to produce the results you want. If you have further problems then ask a specific question and post you...

alrededor de 4 años hace | 0

Respondida
Generating Standalone Executable file Using Matlab Coder
Anything using graphics is going to need MATLAB Compiler. You cannot draw plots without a graphics library of some kind, and th...

alrededor de 4 años hace | 0

Respondida
Changing Axis Bounds to correct units
If you have a time vector, use it as the first argument to the plot function. For example: >> t = 0:0.01:5; >> x = 2*sin(2*...

alrededor de 4 años hace | 0

Respondida
Line plot with two different color based on the condition of the value
One way is to use index vectors. But you may not want the points connected by lines that cross subsets of the other color. If ...

alrededor de 4 años hace | 0

Respondida
Matrix problem with pattern in rows and columns
The brute force way is: a = 2; M = zeros(15,5); M(1, 1) = a; M(1, 2) = (a+1)^2; M(1,3) = and so on... M(2, 1) = (a+2...

alrededor de 4 años hace | 0

Respondida
Dramatic but intermittent slow down of parallel system calls
Windows can have any number of tasks the run apart from MATLAB. Anti virus, caching the file system for searches. Try research...

alrededor de 4 años hace | 0

Respondida
How to select more than 1 selection using Listdlg and export the output to excel?
Your code can be simplified quite a bit. Then use xlswrite to write out to Excel: Weight_lbs={'1234','4561','4556','4545','...

alrededor de 4 años hace | 0

Respondida
moving filter average with convolutional function
Are you asking how to define h in MATLAB? >> h = ones(8,1)/8 h = 0.1250 0.1250 0.1250 0.1250 ...

alrededor de 4 años hace | 0

Respondida
How do I create a figure that shows a trend in plots over time using an animation?
Yes, this documentation link has a lot of discussion on animating plots: https://www.mathworks.com/help/matlab/creating_plots...

alrededor de 4 años hace | 0

Respondida
Problem building a Matlab equivalent to C-type Char* pointer to a list of strings
You may want to review the documentation article "Pass Arguments to Shared C Library Functions". For a NULL terminated string, ...

alrededor de 4 años hace | 0

Respondida
Can I easily create queues and servers (etc.) without SimEvents?
You could use a MATLAB Function block if you can code it in MATLAB code, or use a C++ S-Function with Simulink Builder if you wo...

alrededor de 4 años hace | 0

Respondida
How to zero order hold with time-varying sampling time?
Simulink blocks and sources cannot change sample times on a per sample or per update basis in the way you are describing. The s...

alrededor de 4 años hace | 0

Respondida
print multiple lines to textarea
Can you combine the outputs of all your sprintf calls into a single string, and pass this to app.TextArea.Value? It is not clea...

alrededor de 4 años hace | 1

Respondida
plotting a sine or cosine wave with specific time with specific cycles
By 50 cycles, I understand that you mean that over 33 seconds the signal should have 50 periods. >> t = 0:(1/50):33; >> x = ...

alrededor de 4 años hace | 1

| aceptada

Respondida
Matlab App designer AXIS NOT SHOWING MULTIPLE IMAGES
This section from the documentation article "Display Graphics in App Designer" may be helpful: Use Functions That Don't Suppo...

alrededor de 4 años hace | 1

| aceptada

Respondida
Specifying required number of data points in a timetable to calculate the mean using retime
Posting sample data will help in the Community giving you a good answer. One possibility is using the hours, minutes, or second...

alrededor de 4 años hace | 0

Respondida
Rotate a Rectangle within boundaries
If you want the red shape to sometimes touch the boundaries of the green shape while staying entirely within the green, then you...

alrededor de 4 años hace | 0

Respondida
How to convert to C-code from MATLAB code by using MATLAB CODER for case of Low-pass filter
Here is the online documentation page for functinos in the Signal Processing Toolbox that can be generated to C/C++: https://...

alrededor de 4 años hace | 0

| aceptada

Respondida
how can i convert .mat file to .xlsx or .csv including sub fields
Load the MAT file into MATLAB, then use writematrix to write it out to a spreadsheet or CSV file. For more information on write...

alrededor de 4 años hace | 0

Respondida
Hello I need Matlab codes for GPS-IMU Integration for an unmanned ground vehicle project if anyone can help me I will be thankful.
The UAV Toolbox now has these features. The Controls Toolbox can also be used to model Kalman Filters and even generate code fo...

alrededor de 4 años hace | 0

Respondida
I want to detect the faces of multiple people with faceDetector
See the example article "Motion-Based Multiple Object Tracking" in the MATLAB documentation. This includes a sample implementat...

alrededor de 4 años hace | 0

Cargar más