Réponse apportée
Undefined operator '^' for input arguments of type 'cell'.
c0=1; c1=2; c2=5 c3=4; A=(((c0/2)-(c1*c2/6)+(c2^3/27))-[(c0/2)-(c1*c2/6)+((c2^3/27)^2)+(c1/3-c2^2)^3]^1/2)^1/3; You can...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Pausing the program for GUI
Use waitfor function

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Does there exist some functions that can solve inequality equations?
Solving linear inequality is complicated, non linear will make them more complicated. for now, There are no function that can do...

environ 10 ans il y a | 0

Réponse apportée
How to prevent cell array within cell array
It's simply name = { 'Tom', 'Tim'}; record = [{'school', 'class'}, name]

environ 10 ans il y a | 1

| A accepté

Réponse apportée
iterate values of x through the difference between 2 functions equal to 40. the final x must make the equations equal to 40
[~,idx]=min(abs(w-m)) out=w(idx)

environ 10 ans il y a | 1

| A accepté

Réponse apportée
Setting mixed table data as empty
% -----------Example------------------- y={1 2 '3';4 [] 'r';7 5 'ee' ; 4 [] '8'} a=cell2table(y) %--------------The code-...

environ 10 ans il y a | 0

Réponse apportée
How to integrate from t-1 to t in MatLab
Something is missing, How x is related to t? look at this example tt = -10:Ts:10; syms x t t0 Ts = 0.01; x=sin(t) y = i...

environ 10 ans il y a | 0

Réponse apportée
negative with positive lookbehind regex issue
str = '12()+F34()+O56()'; ii1=regexp(str,'(?<=[OS]\d+)(\()' ) ii2=regexp(str,'(?<=\d+)(\()' ) out=setdiff(ii2,ii1)

environ 10 ans il y a | 0

Réponse apportée
eliminate zero elements and separate into different matrix
A=[0 0 0 0 1 2 3 0 0 3 2 0 0 0 3 4 4 5 0] idx=A~=0 ii1=strfind([0 idx],[0 1]) ii2=strfind([idx 0],[1 0]) out=arrayfun(@(x,...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
using plot with 2 x and 2 y axis
Look at this example % ------------------your 2 functions----------------------------------------- x1=0:0.5:10; x2=x1+1 ...

environ 10 ans il y a | 1

Réponse apportée
read all audio files in one directory
folder='C:\Users\malek\Documents\MATLAB' audio_files=dir(fullfile(folder,'*.m')) for k=1:numel(audio_files) filename=au...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
concatenate all cells in a celll array
a=arrayfun(@(x) rand(256,1),ones(7),'un',0) out=reshape(cell2mat(a),[],1)

environ 10 ans il y a | 1

Réponse apportée
im2double(img) vs double(img)
Try this example, you will see the difference Im = reshape(uint8(linspace(1,255,25)),[5 5]) out1=double(Im) out2=im2ddoub...

environ 10 ans il y a | 0

Réponse apportée
Copying specified number of elements from each row in a matrix?
Values =[1 3 5 7 2; 4 62 2 6 12; 45 8 1 7 9; 4 2 87 1 3; 4 8 1 4 64] V =[2;3;5;4;1] for k=1:size(Values,1) Val...

environ 10 ans il y a | 1

Réponse apportée
I need to obtain second derivativ Second derivative
y=gradient(gradient(r,x),x) or r1=diff(r)./diff(x) r2=diff(r1)./diff(x(2:end))

environ 10 ans il y a | 0

Réponse apportée
Creating a data structure by a loop.
Use {} name_of_data_structure(itt).(list_nam(iter))=data_matrix{itt}(:,iter}

environ 10 ans il y a | 0

Réponse apportée
What does this do?
[m,n]=min(a) m is the minimum, n is the index of n m in a You can try an example a=[4 7 3 6 2 7 8] [m,n]=min(a) ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Assign values to empty matrix
You can use cell arrays A={1 2 'abc' 'efg' [1 2;3 4] [] ''} Remarque: result=zeros(10,3); is not an empty matrix. With ...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
How to create larger matrix within a loop?
DATA=[] for m=0:11; m=m+1; for n=1:15; DATA =[DATA;m,n] end end You can do it without for l...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
imwrite image as a tif
imwrite(D,'yourfile.tif')

environ 10 ans il y a | 0

Réponse apportée
i am getting error that matrix dimensions must agree.
Check the sizes of I and Ihat

environ 10 ans il y a | 0

Réponse apportée
extracting data from matrix
A= [10 20 1 30 40 2 50 60 3 70 80 4 90 100 5] B=[30 40 70 80] idx=ismember(A(:,1:2),B,'rows') B...

environ 10 ans il y a | 1

Réponse apportée
Finding the equation of a line passing 2 points
After you found a, You can get b from your equation y=a*x+b,

environ 10 ans il y a | 0

Réponse apportée
extracting information from structer under specific conditions
%--------Example----------------------------------------------------------- A=struct('xd',num2cell(randi(100,100,1)),'yd',num...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
is Quantization does not work with complex values
You can quantize separately the real part and the imaginary part

environ 10 ans il y a | 0

Réponse apportée
Hi,I have a vector which contains 10 entries. I choose 6 entries among all entries. now I want to find out the index of chosen entries. how can i do this.?
idx=find(ismember(A,entries)) %or maybe you want this A=[1 3 5 2 7 4 9 1 4 5] entries=[1 5 7 4 9 5] B=A; for k=1:n...

environ 10 ans il y a | 0

Réponse apportée
How to read a 1000 digit number from a text file into a matrix?
fid=fopen('fic.txt') s=textscan(fid,'%s') str=[s{:}] out=cell2mat(cellfun(@(x) x-'0',str,'un',0))

environ 10 ans il y a | 0

Réponse apportée
How to find which rows are identical in a matrix
You can use unique function A=[1 1 1 1; 1 0 0 1; 1 0 0 1; 1 0 0 0] [ii,jj,kk]=unique(A,'rows','stable') row_duplicates=ac...

environ 10 ans il y a | 1

Réponse apportée
Using IF block in Simulink
There are many solutions depending on your exact problem, what kind of actions? you can use switch blocks or the If block

environ 10 ans il y a | 0

Réponse apportée
Creating a function to read a text file
function [mass,temp,time] = read(filex) a = dlmread(filex); mass = a(:, 3); temp = a(:, 2); time = a(:, 1);

environ 10 ans il y a | 0

Charger plus