답변 있음
I don't understand why simulink can't find my model to generate estimation code
Hi Kodjovi, MATLAB is unable to find the model ‘battery_model_for_estimation’ because it must not be in your current working d...

대략 1년 전 | 0

답변 있음
How to open .lmf file
Hi Akmal, You can use “fread” function to read a binary file in MATLAB. Below is the code to read data in the format menti...

대략 1년 전 | 0

| 수락됨

답변 있음
Use the DCT to interpolate the images
Hi Nabiha, From my understanding of the question, you want to interpolate the original image by a fixed constant factor. You ...

대략 1년 전 | 0

답변 있음
how to save pcap file after extracting groud plane
Hi Pavan, PCAP is a file format used to store network packet data captured over a network. In MATLAB only the following packe...

대략 1년 전 | 0

답변 있음
Circle the edges of the picture
Hi Ozhan, You can get the coordinates from the edges using the “find” function. From there it’s possible to iterate over the ...

대략 1년 전 | 0

답변 있음
save a movement as a video
Hi sarah, You can use the “getframe” function to capture the current axes or a figure. Then use “writeVideo” function to write...

대략 1년 전 | 0

답변 있음
how to write and read the modbus rtu registers in simulink?
Hi Adarsh, According to my understanding of your question, you receive a datatype error when you try to take data as input ar...

대략 1년 전 | 0

답변 있음
Error using plot Vectors must be the same length. Error in Untitled3 (line 125)
Hi Paulino, The error you are encountering is because of the difference in size of the “z” and “S” vectors in your code. You ...

1년 초과 전 | 0

답변 있음
How can I take into account gaps in joints (planar mechanism, multibody)?
Hi Alexandr, "While "Simscape Multibody" does not have a dedicated block specifically designed to model a gap, you can use spr...

1년 초과 전 | 0

답변 있음
Interpolate YZ, ZX and XY antenna polar data into 3D antenna radiation pattern
Hi Vincent, Using the “phi”, “theta” and “power” data values that you have, you can use the following file from MATLAB File E...

1년 초과 전 | 0

답변 있음
How to 1. view a .lyrx file as a "heat map"? 2. Import the .lyrx file into a 2-d matrix?
Hi Erez, The layer file (“.lyrx”) is not supported in MATLAB. As a workaround you can export the layer file to a supported fo...

1년 초과 전 | 0

답변 있음
Simulink Real-Time C API with python, TCP/IP ERROR
Hi, The error you are encountering indicates an issue with writing data over TCP/IP. This could be due to several factors suc...

1년 초과 전 | 0

답변 있음
Is there a way for a worker to see how many workers are in the parpool?
Hi Bobby, The “pctRunOnAll” command runs the specified code on all workers. So in your code the command “pctRunOnAll NumWorke...

1년 초과 전 | 0

답변 있음
FFT w.r.t time and space
Hi Srikanth, You can use the “fft2” function to simultaneously transform the data from the time-space domain to the frequency...

1년 초과 전 | 0

답변 있음
how to do PCA for sequance alignment using 2018 version?
Hi Khatab, The error you are facing is because of the invalid datatype of “ma” variable in your code. The “pca” function take...

1년 초과 전 | 0

답변 있음
Connect Matlab to Unity 3D
Hi Mariam, You can use TCP/IP sockets to send data between MATLAB and Unity3D.  In MATLAB, you can use functions like “tcpcli...

1년 초과 전 | 0

답변 있음
Downsampling array data from counts per minute to counts per hour
Hi dormant, There can be multiple ways to downsample your data depending on the initial data type. But if your input is just a...

1년 초과 전 | 0

답변 있음
Reading Tar Files In Matlab
Hi Joe, The link you have provided doesn’t seem to be working but I can provide you with general workflow to extract relevant...

1년 초과 전 | 0

답변 있음
Simulink look up tables not exported to fmu
Hi Olavo, You can follow the following steps to include tunable parameters in your FMU export from Simulink - Open your mo...

1년 초과 전 | 1

| 수락됨

답변 있음
Expected a scalar value. This expression has size [:? x :?].
Hi Oliver, You have specified the types of the input variables to the “setAtMatrixRange” function. But since “MatrixIndexRang...

1년 초과 전 | 0

답변 있음
Conditionally stop simulation in simulink
Hi Ting, You can connect “compare to constant” block to the signal “x” and then connect the output of that block to “stop simu...

1년 초과 전 | 0

| 수락됨

답변 있음
MATLAB Coder: C Version Much Slower Than Mex Version
Hi Nyx, There can be several reasons for the C code to be slower than MEX version or the MATLAB code depending on your exact c...

1년 초과 전 | 0

| 수락됨

답변 있음
Generated C code of SVM algorithm not accurate
Hi Nikhiliesh, I believe the generated C code is correct and there could be several reasons for mismatch in accuracy achieved ...

1년 초과 전 | 0

답변 있음
Does event location terminate ODE solver at tspan?
Hi Yi-xia Liu, The values of variables “te”,”ye” and “ie” are empty when the event is set to terminate the integration at “t=...

1년 초과 전 | 0

답변 있음
How to put the desired value for LPSP in MATLAB code for optimizing a PV-battery system using PSO algorithm?
Hi Trainee Engineer, As per my understanding of the question, you want the program to converge to a target LPSP value while u...

1년 초과 전 | 0

답변 있음
how run opensees and matlab online together
Hi Rouhollah, The general way to access “opensees” is by writing the required commands to a file, and then using “system()” t...

1년 초과 전 | 0

답변 있음
Is PID 2-DOF same with fuzzy PID ?
Hi Milad, A 2dof PID controller, commonly known as an ISA-PID compensator, is equivalent to a feedforward compensator and a f...

1년 초과 전 | 0

답변 있음
I initially got an error of minFunc in matlab, i have uploaded the code of the function seperately, but it went away the next day without me doing anything. what happened?
Hi Puvvada, According to my understanding the error does not occur when you restart the MATLAB after a couple of days. The mo...

1년 초과 전 | 0

답변 있음
how to solve higher order differentail equation using Runge Kutta 4th order method in matlab ?
Hi Aniket, You can select the ode45 solver in the model settings > solver to use the ode45 method which is based on an explic...

1년 초과 전 | 0

답변 있음
Why is the build process failing in Simulink?
Hi Da Wang, The error you are facing is likely to be caused due to version compatibility issue between MATLAB and MinGW. You ...

1년 초과 전 | 0

더 보기