Réponse apportée
How to plot a capacitor charging and discharging
hi, Since you are using separate variables which doesn't have any common values you might be getting separate lines. Try this...

presque 8 ans il y a | 1

Réponse apportée
Adding new column to a matrix with the same number repeated
hi, hope this helps a= [1;2;3;4;2;3;2;6;7;2] a(:,2)=zeros(length(a),1); a(find(a(:,1)==2)+length(a(:,1)))=2

presque 8 ans il y a | 0

Réponse apportée
loop while as much has first file
hi, hope this helps cnt=0; [record1,cnt_op1] = read_file(fname1,cnt); [record2,cnt_op2] = read_file(fname2,cnt_op1...

presque 8 ans il y a | 0

Réponse apportée
How to find different values of numbers in different matrices?
hi, you can use ismember() function. if the row exists the output will be one, else zero ismember(A(1,:),B,'rows')

presque 8 ans il y a | 0

Réponse apportée
matlab code to find the position of values in a vector within the specified range that meets a certain condition?
hi, d=[1 2 14 20 10 15 2 4 9 7 5]; x =find(d<15) y =x(x<=6 & x>=3)

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How to change spacing in tick labels on bar graph
hi, Use can use XTick and XTicklabel feature.

presque 8 ans il y a | 1

| A accepté

Réponse apportée
index out of bounds because numel(uold)=1 Error
hi, initialize u with a vector of zeros instead of '0'. for ex u =zeros(1,nx-1)

presque 8 ans il y a | 0

| A accepté

Réponse apportée
Invalid file identifier. Use fopen to generate a valid file identifier.
hi, you are closing the file in while loop and trying to access it again. use fclose() after you encountered feof

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How can I get a numeric vector of time from two string vectors containing date and time?
hi, use datenum and datevec >> datevec(7.366528124011690e+05) ans = 2016 11 18 ...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
extract a database from a matlab program
hi, load(filename) loads all the variables into workspace, you can save them as a .mat file or any other supported format.

presque 8 ans il y a | 0

Réponse apportée
My graph is blank.
hi, variable bug is not a vector its a scalar value so when you plot you try to plot the graph is blank. initialize bug as...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How to replace Simulink Block links?
hi, you can use add_line() and delete_line() functions

presque 8 ans il y a | 1

| A accepté

Réponse apportée
Can't run matlab; 'restoredefaultpath' not working
hi, As soon as you open Matlab, run this command at command prompt and then proceed further restoredefaultpath;matlabrc

presque 8 ans il y a | 0

Réponse apportée
How to automatically get values from nx1 struct
hi, you can use for loop. I have attached a sample code for reference. i=3; b=0; for j=1:i a(j).name='P'; ...

presque 8 ans il y a | 0

Réponse apportée
Matlab returns wrong result
Hi, the value displayed by Matlab is precise value since it uses g value as 0.118549. if you want 8887.5 then truncate the va...

presque 8 ans il y a | 2

| A accepté

Réponse apportée
How to solve "Attempted to access index 12 of an array with smaller dimension sizes" problem?
Hi, Save the data in .mat as columns, use transpose at the start of function. The file must contain a matrix of two or m...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How to pause the simulation with a command line
hi, you can use breakpoints at places where you want to pause, you can change the values and then continue.

presque 8 ans il y a | 0

Question


Test harness not visible
I am using R2015a. i want to use Simulink Test feature, when i right click on a subsystem there is no option for test harness. I...

presque 8 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
how to import xls file into simulink
you can import using signal builder. File --> Import from file

plus de 8 ans il y a | 0

Question


matrix exponential's, both base and exponent are matrix
Hi, Is there are simple way to find the exponential when both base and exponent are matrices. Currently I am using a loop.

environ 9 ans il y a | 1 réponse | 0

1

réponse

Question


display image in subfolder of current folder
hi, I to display an image which is in one of the sub-folders of the current directory. I know the name of the file. how will ...

environ 9 ans il y a | 2 réponses | 0

2

réponses

Question


Matlab goes to infinite loop after closing figure window
hi, Does anyone know why this occurs _"In closereq at 18 Warning: Too many objects created while deleting axes children; rem...

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

1

réponse

Question


double summation of an equation with four variables
i need some help using symbolic variables. i have a equation with double summation f(x,y)=sigma(i=1:4)sigma(j=1:5)g(x,y,i,j...

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

0

réponse

Question


using values in a matrix as index for other matrix
Hello, I am having matrix G of size 30 x 30 and other matrix L of size m x 2 where m <30, I want to update the values in G ba...

presque 10 ans il y a | 2 réponses | 0

2

réponses

Question


non-singular matrix using Galois field
Hello everyone, I am generating a matrix using Galois field with the following code. k=3; m=2; prim_poly = gf...

presque 10 ans il y a | 1 réponse | 0

0

réponse

Question


alternative to syndtable function
i am trying to use _syndtable()_ for (51,27) code. I am getting memory out of bounds error. Is there any other way through wh...

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

0

réponse

Question


passing a cell array structure to matlab function
hi, I am using matlab function block in Simulink. I have to pass a structure as input to the function. I have changed the typ...

presque 11 ans il y a | 1 réponse | 0

1

réponse

Question


changing a true color or gray scale image to binary and then to gray scale or true color
I have converted a m X n X 3 image(no color map) to binary, worked on binary and now want to convert the resultant image back to...

presque 11 ans il y a | 1 réponse | 0

1

réponse

Question


cellfun is slow for lexical sort
Hi, I am trying to lexicogrphically sort a matrix (size - 10000x 1) and i used cellfun, but it is very time consuming. Is the...

presque 11 ans il y a | 1 réponse | 0

1

réponse

Question


error in function call subsystem
Hi, I am new to using SimEvents blocks and triggered subsystems. I have used function-call based trigger for a subsystem and...

environ 11 ans il y a | 1 réponse | 0

0

réponse

Charger plus