A répondu
for loops for two variables (not nested loop)
You can use x=[x mean(y(i:i+99))];

plus de 6 ans il y a | 0

A répondu
I suddenly got a problem with my older laptop and want to activate the MATLAB R2017b trial version in another one with windows 10 os, but after deactivating the older, when I try to activate the new, error 354 is coming. What can be the solution?
You should contact MathWorks directly : <https://mathworks.com/company/aboutus/contact_us> You may have moved your license to...

plus de 6 ans il y a | 0

A répondu
Model Predictive Tool - mpctool - Error message - unable to load selected items - Reg
mpctool is obsolete, you should use mpcDesigner instead. And to use it you have to define at least one output for your system...

plus de 6 ans il y a | 0

| A accepté

A répondu
Plotting two vectors side by side.
I am not sure if it is really hat you want but here is an idea : a=rand(10,1); b=rand(15,1); a and b are two vectors of...

plus de 6 ans il y a | 0

A répondu
i have an array like A= [ 51 22 33 56 67 78 .....] and i have one more matrix of size[1000 300] i need to remove A[] values in matrix.
you can use something like M=magic(5); A=[1 2 1 0 3]; res=cell(length(A),1); for i=1:length(A) res{i}=M(A(i)+1:end...

plus de 6 ans il y a | 2

A répondu
Any idea on how to build this function?
basic idea, to adapt to your specific case : t=20:-1:1; stairs(1./t) which gives <</matlabcentral/answers/uploaded_...

plus de 6 ans il y a | 0

A répondu
In the code of the expm function there is a mention to the function normAm, but I've been unable to find any information about it. Does anybody know where can I find it and/or what is doing it exactly?
Right-click on _normAm_ and select _Open "normAm"_ to see details about this function.

plus de 6 ans il y a | 0

| A accepté

A répondu
i have A=[ 1 3 5 7] B=[2 4 6 8] i need to get answer like c=[1 2 3 4 5 6 7 8] pl help me
A=[ 1 3 5 7]; B=[2 4 6 8]; C=[A B] C = 1 3 5 7 2 4 6 8 C=sort(C) C = 1 ...

plus de 6 ans il y a | 2

A répondu
How to call vector in matrix with condition?
Maybe something like this : m=[1 2 3 10;4 5 6 15;7 8 9 20] m= 1 2 3 10 4 5 6 15 ...

plus de 6 ans il y a | 0

| A accepté

A répondu
How can I turn a matrix into character text in MATLAB?
Have a look here <https://fr.mathworks.com/matlabcentral/answers/71504-convert-an-array-of-numbers-into-letters-1-a-2-b-3-c-et...

plus de 6 ans il y a | 0

A répondu
Pourquoi 2 réponses temporelles différentes avec le Scope ou avec l'outil d'analyse linéaire ?
Dans les deux cas, simulink ou fonction _step_, l'échelle des temps est réglable.

plus de 6 ans il y a | 0

A répondu
How to section a matrix?
Maybe using something like this : M=[-9999866 730537; -999986 733865; -9999747 731652; -9999747 732028; -9999747 72969...

plus de 6 ans il y a | 0

A répondu
License checkout failed -License Manager Error-9
<https://fr.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9>

plus de 6 ans il y a | 0

A répondu
I am trying to simulate descriptor (singular) systems with time delays!
You can define your system using the dss function and specify the delay with the specific option and then use lsi...

plus de 6 ans il y a | 0

A répondu
How can I open am .m file straight from file explorer and the file will be open in matlab script editor?
I'am not sure to get your problem, but open a script, it will open a new window, then "dock it to editor" and then open a new sc...

plus de 6 ans il y a | 0

A répondu
Hi, i want to plot simple function, Can someone tell me how to plot it
t=0.001:0.001:1; % define t as you want c1=rand; c2=rand; y1 = c1*exp(-6*t)+c2*t.*exp(-6*t); y2 = -c1*exp(-6*t)+c2*(exp(...

plus de 6 ans il y a | 0

| A accepté

A répondu
How to take a function_handle's coefficients
syms y q=sym2poly(f(y)) q = 1 0 0 -5

plus de 6 ans il y a | 1

| A accepté

A répondu
Too many arguments error when converting .tiff to .bmp
I don't think that _imwrite_ returns an output. It should be used as imwrite(A,map,filename)

plus de 6 ans il y a | 0

A répondu
can we find the area of curve(i have all data points) with no function?
Try with the _trapz_ function <https://fr.mathworks.com/help/matlab/ref/trapz.html>

plus de 6 ans il y a | 0

| A accepté

Question


Get name of functions called inside another function
Let's say I have a function defined as : function output = mainFunction(input1, input2) a=calledFunction1(input1,input...

plus de 6 ans il y a | 1 réponse | 0

1

réponse

A répondu
I really want to draw the precession of mercury
First : a.^2 the dot is useless as a is a scalar but I think you should add a dot between the cos multiplication : ...

plus de 6 ans il y a | 1

A résolu


Put two time series onto the same time basis
Use interpolation to align two time series onto the same time vector. This is a problem that comes up in <http://www.mathwork...

plus de 6 ans il y a

A résolu


Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

plus de 6 ans il y a

A répondu
How to convert Arduino code to MATLAB code?
If you want to use Arduino from matlab, you can use the MATLAB arduino support package : <https://fr.mathworks.com/matlabcentra...

plus de 6 ans il y a | 0

A répondu
How to find are under the curve for a random signal.
Try with this function trapz which does trapezoidal numerical integration.

plus de 6 ans il y a | 1

A répondu
How to remove axis from a figure?
set(gca,'visible','off')

plus de 6 ans il y a | 11

A résolu


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

plus de 6 ans il y a

A répondu
How to plot x=y2
y = 0:1:100; % define y as you want x = y^2; plot(y,x) % plot X versus Y

plus de 6 ans il y a | 2

A répondu
How can I interpolate this row?
Check if the _fillmissing_ function does what you want. <https://mathworks.com/help/matlab/ref/fillmissing.html>

plus de 6 ans il y a | 0

A répondu
How to get stiffness and damping values for single degree of freedom?
Stiffness and Damping values depend on the material of the car seat you're studying.

plus de 6 ans il y a | 0

Charger plus