已回答
In a while loop, I have to calculate S (net cash of an insurance company) depending on which events (E1, E2 or E3) happens first. I tried the following code, but its not working. Maybe someone can help me ...
There seems to be few syntax errors in the code. You can use multiple elseif block under the if block but only a single else blo...

4 years 前 | 1

已回答
How to draw a northarrow on a simple plot, and not on a map?
The northarrow function works on map axes. You may want to read the annotation documentation to draw an arrow on a simple plot. ...

4 years 前 | 0

| 已接受

已回答
Error in port widths or dimensions. 'Output Port 1' of 'filtereddxlms/Sum1' is a [1024x1] matrix.
Since the Signal Specification block is a virtual block that exists only to specify the attributes of a signal and plays no role...

4 years 前 | 0

已回答
Help! Indexing a Vector, Display Issues
According to the script you have written, if the inputs are provided in the [h,m,s] format, direct addition can be done. Provid...

4 years 前 | 0

| 已接受

已回答
plotting x[n] with various points from a file
Stem function requires both X and Y inputs to be vectors or matrices of the same size. You may use the following line of code: ...

4 years 前 | 0

| 已接受

已回答
Invalid text charcter .Check for unsupported symbol, invisible charcter ,or pasting of non-ASCII chatcters
Please refer this link for answers to a similar question. If the error persists, share your code for better resolution of the is...

4 years 前 | 0

已回答
Matrix is singular to working precision
The warning “Matrix is singular to working precision” occurs if the matrix for which you are using to solve the system of linear...

4 years 前 | 0

已回答
How can I change the letters in a string input but not the other characters?
It is my understanding that only the letters in the string input must be changed according to the logic of the script and other ...

4 years 前 | 0

已回答
What does the "E" with the arrow on the signal?
SimEvents models no longer require gateway blocks. It automatically handles any exchange of data across the time and event domai...

4 years 前 | 1

已回答
Generating FMCW Tx chirp
You can refer the Automotive Adaptive Cruise Control Using FMCW Technology example to model the FMCW Transmitter chirp. Hope thi...

4 years 前 | 0

已回答
Is it possible to change range and order label to latitude/longitude in an azimuthal projection using Mapping Toolbox?
You may check the Map Axes Properties to control axes appearance and label properties. You can use mlabelzero22pi to change the ...

4 years 前 | 0

| 已接受

已回答
Is it possible to get timestamp information from ''getsnapshot'' function in Image Acquisition toolbox?
Yes, it is possible to store the frames and timestamp data. You may use the start and stop function inside the loop to avoid log...

4 years 前 | 0

| 已接受

已回答
I have a few if statements within a while statement, i want them to display different values based on input but they're being skipped over
Hi Joshua, from your code I understand that you want to type the letter ‘x’ to close the game and display “Thanks for Playing”. ...

4 years 前 | 0

| 已接受

已回答
MATLAB command to replace 0 in Excel
Hi Akshay, You can use the readcell function to read a range of values and use the cellfun command to replace the zeros with bl...

4 years 前 | 0

| 已接受

已回答
Matlab code check for signals
Hi Jone, The code seems to be working fine. Please ensure that you have saved the file with the same name as that of your funct...

4 years 前 | 0

已回答
Save workspace to .pdf
You can save your workspace as a PDF file by first saving it as a MATLAB file using matlab.io.saveVariablesToScript or Simulink....

4 years 前 | 0

已回答
Data Tip properties do not persist
Hi, You can try pasting both the lines of code where the font size is initialized, inside the ‘UpdateFcn’ of the datacursormode...

4 years 前 | 0

| 已接受

已回答
Binning regions of a 2D matrix slices (and extending this into the third dimension)
Hi Eunan, You can use the convn function to help you achieve this. Please look at the below example where I have taken ‘X’ as ...

4 years 前 | 1

已回答
Change data tip so it shows temperature
You can refer to datacursormode documentation which has an example of customizing data tips via a callback function. From my un...

4 years 前 | 0

| 已接受

已回答
extending an array for zero padding,
Hi, it is my understanding that the array ‘K’ needs to be extended to the same size as that of array ‘L’. You can use the linspa...

4 years 前 | 0

| 已接受

已回答
datastore for a matrix
As the error says “Member names must be unique”, you can add the ‘MemberNames’ property in the labeledSignalSet definition and d...

4 years 前 | 0

已回答
Plot initial and final position only on plot
It is my understanding that you are trying to solve a collision problem in 2D plane. You can check out the scatter function to p...

4 years 前 | 0

已回答
how to plot the number of each run/plot in a scatterplot
Hi, Yes, it is possible to modify the number of each run. Initialize the annotation outside the loop and change the text inside...

4 years 前 | 1

已回答
Set a marker at an arbitrary location on the web map
The webmap does not allow adding markers by clicking on it. Although, you can use the geoaxes plot to add markers to the webmap....

4 years 前 | 1

已回答
Conversion to double from struct is not possible.
The variable name can be used to select only the required data from the MAT file. To save the changes made to your data back to ...

4 years 前 | 1

| 已接受

已回答
FFT of time domain data from excel
You can refer to readmatrix for reading the data from the CSV file. Using the readmatrix function, data in the CSV file you have...

4 years 前 | 0