Respondida
if function not working
Hi, Assuming t is a vector, which it should be, you should use indexing to compare it in the if conditions, for example, ...

casi 9 años hace | 0

| aceptada

Respondida
How can I reduce the execution time in the following code?
From what I understand, you only have my_data in the matfile 'z' and you want to do some calculations and save the new my_data a...

casi 9 años hace | 0

Respondida
How can I convert my Matlab code to a simulink ?
Hello, Hope you're familiar with matlab functions and in this case there is a <https://de.mathworks.com/help/simulink/slref/m...

casi 9 años hace | 0

Respondida
mat2cell second input parameter(s)
Hi Ahmed, From the example on the documentation, when you say c = mat2cell(x, [10, 20, 30], [25, 25]) you should exp...

casi 9 años hace | 0

| aceptada

Respondida
Row-wise multiplication of a matrix while setting the rest of the matrix to zero
Hi, One better way to do it is to use a for loop where you copy one specific row from your original matrix and replacing it i...

casi 9 años hace | 1

| aceptada

Respondida
num2str increasing dimentions of m
Hi, when you convert a numeric array into a character array there is a white space added between columns by default and hence...

casi 9 años hace | 0

| aceptada

Respondida
text as a table in a plot !!
Hi, Since you want to have a table like text, creating a latex table should do the trick, something like this: cs = '\...

casi 9 años hace | 2

| aceptada

Respondida
labelling the (x,y) values corresponding to each data points on a graph
Hi Athira, xOffsets = 0.0025*ones(1,9); yOffsets = 0.0025*ones(1,9); for i=1:9 text(load(i)+xOffsets(i), corr(i...

casi 9 años hace | 0

| aceptada

Respondida
MATLAB takes a long time to run the same code on my laptop compared to my desktop.
Hi, <https://de.mathworks.com/help/matlab/ref/profile.html Profile> helps to analyse the execution time & number of calls wit...

casi 9 años hace | 1

Respondida
How do I use Latex formatting in graph node labels?
Hello, Replacing 'mu' with '{\mu}' should do the trick. Nevertheless here is a <http://www.mathworks.com/matlabcentral/fileex...

más de 9 años hace | 1

Respondida
Simulation time of From block based on values received
Hello Senthil, In Simulink library you can find <http://de.mathworks.com/help/simulink/slref/detectchange.html detect change ...

casi 10 años hace | 0

| aceptada

Respondida
Run a Simulink model N-times and store the output of each run
Hello, Something like the following will do. for i = 1:N sim(ModelName); save(['result' num2str(i)...

casi 10 años hace | 1

| aceptada

Respondida
How to set figure/plot visibility to on by default?
you can set your preferences using <http://de.mathworks.com/help/matlab/ref/setpref.html setpref> as default settings.

más de 10 años hace | 0

Respondida
How to create a loop with Fibonacci sequence
n(1) = 1; n(2) = 1; k=3 while k <= 10 n(k) = n(k-1)+n(k-2); k=k+1; end

más de 10 años hace | 0

Respondida
Exporting selected data as a table
did you check <http://uk.mathworks.com/matlabcentral/answers/159711-copy-table-s-certain-data-into-another-table-with-correspond...

más de 10 años hace | 0

Respondida
How to add noise in transfer function
I would suggest you to create a transfer function for the disturbance, say G_disturbance, and add this to your transfer function...

más de 10 años hace | 0

Respondida
how can calculate rise time, peak time,overshoot, setlling time
You shall use <http://de.mathworks.com/help/control/ref/stepinfo.html stepinfo> function.

casi 11 años hace | 1

| aceptada

Respondida
How to Add random noise to a signal
Did you check the <http://de.mathworks.com/help/comm/ref/wgn.html gaussian noise> function?

casi 11 años hace | 0

Respondida
Hold and Ramp Down function in Simulink
Take a negative constant (your slope) and then connect it to a discrete integrator with an external reset. This will produce a n...

casi 11 años hace | 0

Respondida
Need help writing an if statement involving vectors (2)
issorted(A) returns true if they are sorted! check <http://de.mathworks.com/help/matlab/ref/issorted.html here>

casi 11 años hace | 0

| aceptada

Respondida
Real time PI controller
You are talking about harware implementation. Check <http://de.mathworks.com/products/simulink-real-time/ here> to know more

casi 11 años hace | 0

Respondida
Problem with PMSG turbine modelling
The PMSM has two inputs, One is three phase voltage and the other is load torque. I understand in your case, you must get the lo...

casi 11 años hace | 1

| aceptada

Respondida
how to label y axis in scope
Using simulink scope you plot some parameter versus time. So X axis is usually time and Y axis is your parameter or in your case...

casi 11 años hace | 0

Respondida
how to gave the column name in the cell array
You might want to use <http://uk.mathworks.com/help/matlab/ref/table.html table> where each column has its own header.

casi 11 años hace | 1

Respondida
Sine wave signal stop time
Fs = 8000; dt = 1/Fs; t1 = 0: dt: 2; t2 = 0*(2: dt : 3); t = [t1...

casi 11 años hace | 0

Respondida
Calling a function in Simulink from Matlab
<http://uk.mathworks.com/help/simulink/slref/matlabfunction.html This> is what you're looking for?

casi 11 años hace | 0

Respondida
Matlab P file opening in Octave
I don't think it's possible.

casi 11 años hace | 0

Respondida
Opening a .txt file
N = dlmread('filename.txt','\t'); This loads the data in the text file into the matrix N. <http://uk.mathworks.com/help/ma...

casi 11 años hace | 0

| aceptada

Respondida
Memory types in Matlab
did you check <http://stackoverflow.com/questions/21997579/memory-profiling-of-matlab-columns-meaning this> ?

casi 11 años hace | 0

Respondida
[ANSWERED] Converting .txt file from an URL to a matrix
urlwrite('http://asc.di.fct.unl.pt/ice/TP1/Aluminio.txt','urlcont.txt') N = dlmread('urlcont.txt','\t');

casi 11 años hace | 1

Cargar más