Réponse apportée
Givens rotation QR decomposition
It looks to me like your code reproduces what is in the pseudocode. Are you sure that the psuedocode that you based your code o...

environ 6 ans il y a | 0

Réponse apportée
Saddle points of a 2D matrix
Here is a simple approach. Note I define a saddle point as one that is either the largest in its column and smallest in its row ...

environ 6 ans il y a | 4

| A accepté

Réponse apportée
I need help with the model of vertical axis wind turbine
Here's a paper that shows an example of using Simulink to model a vertical axis wind turbine: Modeling of a Vertical Axis Wind ...

environ 6 ans il y a | 0

Réponse apportée
input command for more than one values
If in response to the prompt you enter a vector using MATLAB syntax, that is surround the answer with square brackets, then this...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How do extract rows containting certain strings from a table to make a new table?
Suppose you had a table called myTable with a column (variable name) named quality with certain words such as 'NaN' 'CORRECT' et...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Chessboard , Euclidean and City Block distance simplest codes(functions) for all order of matrix that i can understand as i am student and at start of this language.
Please give it a try, just get started see what problems you have and where you are stuck, and then ask about these issues. Jus...

environ 6 ans il y a | 0

Réponse apportée
Identify 'Presses' From Continuous Data
Let's say you call your continuous data from one channel x (you can generalize this later to a matrix over the 10 channels). Le...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Soliving system of ODEs written as function in simulink
You should be able to define your dynamic model (system of ode's) using a Simulink S-function block. Please see https://www.mat...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
Trouble Solving For A Variable In A Loop
Please do your best to start writing the script that your assignment asks for. If you get stuck at a certain point, then please ...

environ 6 ans il y a | 0

Réponse apportée
All possible combination of variables in equation to give best result.
Assuming A and B are both column vectors You can create a table with all possible sums using total = A + B' You can then find ...

environ 6 ans il y a | 0

Réponse apportée
Compute auto-covariance matrix from noise
You can generate the 5 signals in just one call to randn, for example x = randn(10000,5); Which will make a matrix with 10000 ...

environ 6 ans il y a | 0

Réponse apportée
Dice rolling & loops
You can generate a vector with 10 dice rolls using rolls = randi(6,1,10) You can determine how many of the 10 rolls are eithe...

plus de 6 ans il y a | 1

Réponse apportée
Integration via trapezoidal rule in various sections of the same array
Assuming you can find the indices of your ranges by some means, e.g. findpeaks, then make an array of the ranges, for example r...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
How to compute the partial derivative
As @Kalyan suggested you could use the symbolic toolbox if you have it. Otherwise you could just go to the definition of a parti...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Birthday problem with 3+ people?
Here are some ideas that you might use To generate random birthdays for groups of 50 people - look at randi, ignoring leap year...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
Fix one curve, while change another
Here is one approach. You can modify the YData property of the second curve. Here is a little example x = 1:10 y1 = x; y2 = x...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Accessing timetable data using user defined column
You can do something like this v = T.value(T.time_lin==0.4)

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Solving first order differential equation
Your verbal problem description in which you call L and ouput, but in fact you know what it is, somewhat confuses me, but in any...

plus de 6 ans il y a | 0

Réponse apportée
Battery model - using vector concatenate to collate individual cell outputs
I have never experienced any issues with combining individual signals with a mux. The individual signals retain their original v...

plus de 6 ans il y a | 0

Réponse apportée
I can't find solution of sinusoidal function's by numerical methods
I assume that you are trying to approximate the integral of f(x) between x = a and x = b. You are initializing x incorrectly. Y...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to replace complex numbers in a column vector with 0.000+0.000i ?
Suppose you have a complex vector (the result of your fft) lets call it x. If you want to replace some elements of it with zero ...

plus de 6 ans il y a | 1

Réponse apportée
how can i answer how to plot signal, and its frequency and phase. Then add a noise signal and plot the same parameters?
Here are some ideas to get you started If you just want to visualize V1 as a function of time you can assign a vector of values...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Plot over time milliseconds
I'm not quite clear on what you are trying to accomplish but it looks like some how you want to see the plot continue to evolve ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to save MPC (model predictive controller) to be used later on? The error message is attached.
A way around this problem is to: 1) Design your controller 2) Export your controller to the workspace 3) Save your controlle...

plus de 6 ans il y a | 0

Réponse apportée
How to save the previous figure generated by function'step(H,x)'
You need to create a new figure just before calling step clear all vars clc fs = (5/2)*1e6; % Symbol rate (Hz) fc=...

plus de 6 ans il y a | 1

Réponse apportée
Problem with writing this function
You may have some other issues also, but assuming that you have defined x as a column or row vector and you are expecting to cal...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Find a column number referring to an array
You could use idx = find(V==point(1)) or you could check the column the second element of point matched the second row of A us...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Adding characters to a matrix
I think your problem may just be that you need to put single quotes around the g in the function call so use [varAlongDiag, var...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Storing data in Table inside for loop
Looking quickly at your loop structure, it seems that if you want a row for every iteration you must count how many times you ha...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Extracting user defined data
If you type doc readmatrix on the command line you will get all the documentation, including examples for using this function. Y...

plus de 6 ans il y a | 0

| A accepté

Charger plus