已回答
problem with unit delay
Hi @Maedeh Mohammadi, Algebraic loops occur when an input port with direct feedthrough is driven by the output of the same bloc...

1 month 前 | 0

已回答
Error plot is starting at the wrong value in my "while loop"
Hi @Caleb Hedin, The issue you're encountering with the calculation of "epsilon1" arises from the order of operations within yo...

1 month 前 | 0

已回答
How to get the exact lat lon position of nc file data
Hi @Karthik M, To extract the exact x and y coordinates of pixels that fall within specific value ranges in a matrix, you can m...

1 month 前 | 0

已回答
how to calculate interference?
Hi @ankanna, To calculate interference in a network graph using the formula ( interference = r_i^m ), where "r_i" is a given in...

1 month 前 | 0

已回答
how to write xlswrite command in a loop such that after every loop, the row increments.
Hi Usama, To write the output to an Excel file, appending it to the next available row, you can utilize the "writematrix" funct...

2 months 前 | 0

已回答
how to write data in different columns in same sheet ?
Hi Ajay, To write a program that outputs daily data for a month into different columns of the same sheet, you can use MATLAB an...

2 months 前 | 0

已回答
Proportional Control Design MATLAB
Hi Somadina, I recommend exploring the "PR Controller" model available on MATLAB Central File Exchange: PR Controller - https:/...

2 months 前 | 0

已回答
proportional resonant controller transfer function code with variables
Hi Premchand, Below is a MATLAB code snippet that defines the transfer function of a PR controller using symbolic variables: %...

2 months 前 | 0

已回答
How to calculate variance, kurtosis, and skewness of a ROI (Region of Interest) in grayscale image?
Hi Yogi, To calculate the statistical measures such as mean, standard deviation, variance, kurtosis, and skewness for a region ...

2 months 前 | 0

已回答
Looping for a specified number of iteration
Hi Siti, To incorporate the described logic, you can modify the code as shown below: % Initialize the iteration counter iter ...

2 months 前 | 0

已回答
How to save Variable in workspace from real time simulation with timestamps
Hi Siyaram, I understand that you want to store the simulation output in the MATLAB workspace with timestamps. To achieve this...

3 months 前 | 0

已回答
How to write To Workspace data to a workspace
Hi A, I understand that you want to run a Simulink model using a MATLAB script, with the objective of storing the simulation ou...

3 months 前 | 0

已回答
Permutation of Boolean function in Matlab
Hi HR, I understand that you want to evaluate the expression "((x0 & x1) ^ (x1 & x2))" by permuting the values of (x0), (x1), a...

3 months 前 | 0

已回答
how to discard NaN vectors from a 3D matrix
Hi Itzik, I understand that you are want to remove all slices in your 3D matrix that contain NaN values. You can achieve this b...

3 months 前 | 0

已回答
[Homework] Bad syntax? Getting a crash. Cycle While + If + Matrix
Hi Jaquim, The issue that you are facing is because the while loop runs for infinite times since the variables "i" and "j" neve...

3 months 前 | 0

已回答
How to make program keep asking input..
Hi Serkan, To ensure that the program continues asking for input, until the correct number is guessed, you will need to keep th...

3 months 前 | 0

已回答
Approximation not falls within the expected range
Hi Zhuoying, I kindly suggest you to refer the following MathWorks file exchange page, which demonstrates implementation of the...

3 months 前 | 0

已回答
for loop for non integer values
Hi Sara, The issue that you are encountering is because integer operands are required for colon operator when used as index. T...

3 months 前 | 0

已回答
How do I write a for loop that stacks the columns of a matrix vertically into a single column array?
Hi Elias, To reshape the matrix into a column vector, you can use the colon operator. The below code demonstrates the same: A...

3 months 前 | 0

已回答
Saving loop outputs in a vector
Hi Jarek, To store the calculated states like "R-squared" or "F-Statistic" for each iteration, you can preallocate vectors. Th...

3 months 前 | 0

已回答
performing 1s and 2s complement,only first row is being done 2s complement,where i am wrong please tel
Hi Akshay, The issue that you are facing is because the carry value "d" is not being reset after the completion of each row's c...

3 months 前 | 0

已回答
How to change the DEFAULT language of Mathworks account?
Hi Antonello, To ensure that the display language of MathWorks website is in english, I kindly suggest you to change your brows...

3 months 前 | 0

已回答
calling a matrix with indexing
Hi Mei, To implement the given formula, you can use a nested "for" loop as shown in the below code snippet: % Compute Q_k for ...

3 months 前 | 0

已回答
Does an ODBC-connection to MySQL also exist on Mac like on Windows? I find only the JDBC possibility.
Hi Walter, Please note that ODBC database connectivity is indeed supported on macOS. The following MathWorks documentation pr...

3 months 前 | 0

已回答
Coverted a grayscale image to binary, but....
Hi Med, I understand that you are facing issues while trying to save a binarized image. Unfortunately, I am not able to repro...

4 months 前 | 0

已回答
mixing ingredients from tables besides looping
Hi Addy, I recommend using a more generalized approach that doesn't require manually adding loops each time you increase the nu...

4 months 前 | 0

已回答
using the table format, how to filter on words
Hi Erik, To filter the rows containing 'B', you can use logical indexing as described in the below steps: Use "ismember" func...

4 months 前 | 0

已回答
How to do an iteration with while loop
Hi Siti To perform an iterative process where you update Tf until the difference between Tf and T_average is zero, you need to ...

4 months 前 | 0

已回答
how to printout the outputs of the clusters while doing it using the built in functions??
Hi Wasima, The "kmeans" function returns an array of cluster indices, which you can use to separate your data according to the ...

4 months 前 | 0

已回答
Dijkstra algorithm in weighted graph
Hi Vasilis, I understand that you are looking for an implementation of Dijkstra's algorithm for weighted graphs. I recommend ...

4 months 前 | 0

加载更多