回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
High Pass Digital Filter Design
Try using the Filter Designer App in the Signal Processing Toolbox.

4年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

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

4年以上 前 | 0

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

さらに読み込む