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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

Answered
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','...

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

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

4 years ago | 1

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

Answered
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://...

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

Load more