A répondu
Is there any maximum for the size of matlab table?
It depends on what you want to store into this table. You can have a look here to find more informations: https://mathworks.com...

environ 3 ans il y a | 0

A résolu


Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

environ 3 ans il y a

A répondu
function rand with variables
You can use something like this, adapt it to your case: a = 1; b = 2; c = 3; A = [a b c]; nb = 10; vec = zeros(1,nb); for...

environ 3 ans il y a | 0

A résolu


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

environ 3 ans il y a

A répondu
('tf' requires one of the following) "tf commend is not working" HELP PLS!
Your code is right, but you do not have the required toolbox. The function tf is part of the 4 toolbox listed in the error messa...

environ 3 ans il y a | 5

| A accepté

A répondu
Any methods to solve optimal control indirect method such as Pontryagin Minimum Principle?
Hi, here are some related questions to start with: https://mathworks.com/matlabcentral/answers/440335-how-to-implement-optimal...

environ 3 ans il y a | 0

A répondu
Vectors must be the same length.
What lines causes the error ? Following one ? g = plot(t,delta_omega_laser ); t and delta_omega_laser must have the same leng...

environ 3 ans il y a | 0

| A accepté

A répondu
assign variable name to Function Output Variables
Why don't you just change [wave_rms]=waveform(wave) into [Uph_rms]=waveform(wave) ?

environ 3 ans il y a | 0

A répondu
Taking in a function as an argument
How is testfunc defined ? Here is a simple working example: function out = func(inputfunc, constant1, constant2) out = inputf...

environ 3 ans il y a | 0

A répondu
How idx runs and give its value ?
abs(a-n) = 1.8000 2.0000 4.0000 6.3000 6.5000 then min(abs(a-n)) = 1.8, and the location of this minimum value...

environ 3 ans il y a | 0

A répondu
Servo control without controller
have you tried something so far ? Do you need help to connect matlab and the motor ? In this case you should specify what is y...

environ 3 ans il y a | 0

A répondu
plot a defined function
plot the function N(T) versus T in range 0.1 to 14 T is known ? T =[0.1 : 14 ] ? And you want to plot ne(T) ? In this case yo...

environ 3 ans il y a | 0

A répondu
Problem with Discrete Controller Design
It could actually be both. It is indeed possible that the discretization with a given frequency brings problems such as oversa...

environ 3 ans il y a | 0

A répondu
If the values are almost equal to each other,how do i plot the figure to see its curve? (not straight line )
I am not sure to understand the question, but the following code answer your question ? a=[1 2 3 4]; x=[x1 x2 x3 x4]; % your d...

environ 3 ans il y a | 0

A répondu
obsvf confused by documentation
You were right, the documentation for obsvf function has been updated recently: https://mathworks.com/help/control/ref/obsvf.ht...

environ 3 ans il y a | 0

A répondu
HOW TO MAKE FUNCTION HANDLING PROPERLY IN DIFFERENT MATLAB FILES?
The way to call functions in matlab is explained here: https://fr.mathworks.com/matlabcentral/answers/179803-calling-a-function...

environ 3 ans il y a | 0

| A accepté

A répondu
How to take the average of different initial conditions
It is not clear what you want to do from the code you posted, especially the first loop : for j = 1: length (g) ... end ...

plus de 3 ans il y a | 0

A répondu
Not enough input argumaents
It depends on how you call this function, try to call if from the command window : x = 1; y = 2; s = add(x,y); And then you...

plus de 3 ans il y a | 0

A répondu
how to find matching elements of two colums vectors
It depends what you want exactly. Let's say you have two vectors a and b: a=[1;2;3;4]; b=[0;2;3;5]; To find the indices wher...

plus de 3 ans il y a | 0

A répondu
matlab 2014b windows 10
Follow this link and select the matlab version you want to download : https://mathworks.com/downloads/web_downloads/select_rele...

plus de 3 ans il y a | 0

A répondu
How to caculate a value for a step - the previous step
It depends on what you mean by "I have a value x". It is actuallyquite easy to do for a straightforward example, but it depends...

plus de 3 ans il y a | 0

A répondu
Restrict user string inputs
The problem comes from your conditions: ~strcmp(y,'i') | ~strcmp(y,'m') This is never true, even if you enter 'i' or 'm'. Wh...

plus de 3 ans il y a | 0

A répondu
How can I call a .m function with App Designer?
Yes it is possible, have a look at this tutorial and introduction video: https://mathworks.com/help/matlab/creating_guis/create...

plus de 3 ans il y a | 0

| A accepté

A répondu
facing problem in writing complex programme
Can you show the entire error message ? You have at least one error at line 5: part1=beta /lamda(0.5-delta+delta^2); sayi...

plus de 3 ans il y a | 0

| A accepté

A répondu
how to use a graph from user input as input to the matlab program
In this case, I recommend you use lsim: https://mathworks.com/help/control/ref/lsim.html

plus de 3 ans il y a | 0

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 3 ans il y a

A résolu


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

plus de 3 ans il y a

A résolu


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

plus de 3 ans il y a

A résolu


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

plus de 3 ans il y a

A résolu


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

plus de 3 ans il y a

Charger plus