답변 있음

Error 5 installing matlab

http://www.mathworks.com/matlabcentral/answers/99600-why-do-i-receive-a-winzip-error-error-5-running-command-setup-exe-during-th...

Error 5 installing matlab

http://www.mathworks.com/matlabcentral/answers/99600-why-do-i-receive-a-winzip-error-error-5-running-command-setup-exe-during-th...

5년 초과 전 | 0

답변 있음

Vectorize 3 for loops

Hi, Here is your answer: Max = 5; tab = randi(10,50,60,10); second_tab = randi(5,50,60,10); new_tab = second_tab*5; new_ta...

Vectorize 3 for loops

Hi, Here is your answer: Max = 5; tab = randi(10,50,60,10); second_tab = randi(5,50,60,10); new_tab = second_tab*5; new_ta...

5년 초과 전 | 0

| 수락됨

답변 있음

find in cell array

Hi, The simple problem with your code is it is not able to extract the indices of the value 1 which has been obtained by MM. I...

find in cell array

Hi, The simple problem with your code is it is not able to extract the indices of the value 1 which has been obtained by MM. I...

5년 초과 전 | 1

답변 있음

CSVread empty cells non zero

Hi, The answer is simple. You try with xlsread [A, B, C ] = xlsread('Data.xlxs'); Here A gives all the numbers of the matrix. ...

CSVread empty cells non zero

Hi, The answer is simple. You try with xlsread [A, B, C ] = xlsread('Data.xlxs'); Here A gives all the numbers of the matrix. ...

5년 초과 전 | 1

답변 있음

How to Sum functions?

Uff!!!. I think I finally found a solution to this. I will not assure this is the best way to do it. clear all; %initialize ...

How to Sum functions?

Uff!!!. I think I finally found a solution to this. I will not assure this is the best way to do it. clear all; %initialize ...

5년 초과 전 | 0

| 수락됨

답변 있음

how to plot fewer marker ?

Hi, Can't you just delete a few data from VarName10? You can write a simple code like this VarNamePlot = VarName10; m = leng...

how to plot fewer marker ?

Hi, Can't you just delete a few data from VarName10? You can write a simple code like this VarNamePlot = VarName10; m = leng...

5년 초과 전 | 0

| 수락됨

답변 있음

how to make 3 lsbs set to zero

I have written a sample code. Please take a look at it. one point to be noted would be when you convert a decimal to binary in ...

how to make 3 lsbs set to zero

I have written a sample code. Please take a look at it. one point to be noted would be when you convert a decimal to binary in ...

5년 초과 전 | 0

답변 있음

How can I find if a line and a circle intersect.

If you have the matrix data with you then you can try to find common numbers between those two matrices. intersect(A,B); This ...

How can I find if a line and a circle intersect.

If you have the matrix data with you then you can try to find common numbers between those two matrices. intersect(A,B); This ...

5년 초과 전 | 0

답변 있음

save result in cell

create a cell and then store them. Dont create the matrix at all result = cell(1,n) for k = 1:n result{k} = 106 ;%<calcul...

save result in cell

create a cell and then store them. Dont create the matrix at all result = cell(1,n) for k = 1:n result{k} = 106 ;%<calcul...

5년 초과 전 | 0

답변 있음

how to make 3 lsbs set to zero

Step1: load the rgb image step2: create a matrix image(x,y,:) Step3: convert values to binary>> de2bi Step4: replace the 3 lb...

how to make 3 lsbs set to zero

Step1: load the rgb image step2: create a matrix image(x,y,:) Step3: convert values to binary>> de2bi Step4: replace the 3 lb...

5년 초과 전 | 0

답변 있음

Some of the lines in the code below does not execute, why?

Hi, I went through the code. Technically code has no problems with the code. Everyline is being executed. You can try it by hav...

Some of the lines in the code below does not execute, why?

Hi, I went through the code. Technically code has no problems with the code. Everyline is being executed. You can try it by hav...

5년 초과 전 | 1

| 수락됨

답변 있음

Question involving nested 'for loops' pertaining to structs and cell arrays

I think the problem is simple. Try deleting the frames using the command clear . I am pretty sure that you are just overwrite pa...

Question involving nested 'for loops' pertaining to structs and cell arrays

I think the problem is simple. Try deleting the frames using the command clear . I am pretty sure that you are just overwrite pa...

5년 초과 전 | 0

답변 있음

How do i find the amplitude of a peak in my plot?

Hello, Find the slope for each case. When there is change in slope from positive to negative, its a peak. If the slope changes ...

How do i find the amplitude of a peak in my plot?

Hello, Find the slope for each case. When there is change in slope from positive to negative, its a peak. If the slope changes ...

5년 초과 전 | 0

답변 있음

MATLAB - xlswrite - how to avoid overwriting

Hey, Great question . I was also caught up in the same question but I know have the answer. So the logical thing to do woul...

MATLAB - xlswrite - how to avoid overwriting

Hey, Great question . I was also caught up in the same question but I know have the answer. So the logical thing to do woul...

5년 초과 전 | 0

답변 있음

Create a uniform empty cells between 2 data in excel file?

Please check this out: [num, as,ads] = xlsread('m.xlsx'); %take the required data A = num(1:48, 1:2); %initialize B B =...

Create a uniform empty cells between 2 data in excel file?

Please check this out: [num, as,ads] = xlsread('m.xlsx'); %take the required data A = num(1:48, 1:2); %initialize B B =...

5년 초과 전 | 0

답변 있음

Non zero min 3D matrix

You can remove all the for loops and make it more effecient A= rand(10,10,10); A(A==0) = inf; min(A) Here I am just replacin...

Non zero min 3D matrix

You can remove all the for loops and make it more effecient A= rand(10,10,10); A(A==0) = inf; min(A) Here I am just replacin...

5년 초과 전 | 1

답변 있음

how to find the summation for the odd and even numbers(from 0 to 100) save odd number in sum1 and even in sum2

tryThis: N=100; Numbers = [1:1:N]; Even = Numbers((mod(Numbers,2) ==0)); Sum1 = sum(Even); odd = Numbers((mod(Numbers,2) ...

how to find the summation for the odd and even numbers(from 0 to 100) save odd number in sum1 and even in sum2

tryThis: N=100; Numbers = [1:1:N]; Even = Numbers((mod(Numbers,2) ==0)); Sum1 = sum(Even); odd = Numbers((mod(Numbers,2) ...

5년 초과 전 | 0

답변 있음

Problem with unique command

Hi, I think there is a confusion between the functions of IA and IC. lets consider an example A = [9 2 9 5]; [C, ia, ic] = u...

Problem with unique command

Hi, I think there is a confusion between the functions of IA and IC. lets consider an example A = [9 2 9 5]; [C, ia, ic] = u...

5년 초과 전 | 1

| 수락됨

답변 있음

Writing Code for Identifying Objects in a Photo

I would suggest you read the book "machine learning with Maltab". This is a huge topic and there is not shortcut to learn this.

Writing Code for Identifying Objects in a Photo

I would suggest you read the book "machine learning with Maltab". This is a huge topic and there is not shortcut to learn this.

5년 초과 전 | 0

답변 있음

Why can't we continue writing small scripts in the MATLAB terminal as we can do in python terminal?

I am not really sure of this answer but I will just go ahead. In Matlab for a function to work you should create same file name...

Why can't we continue writing small scripts in the MATLAB terminal as we can do in python terminal?

I am not really sure of this answer but I will just go ahead. In Matlab for a function to work you should create same file name...

5년 초과 전 | 0

답변 있음

Using loop inside loop curve fit and extract x intercept_Data Attached

I have done it using a for loop. You can also try without for loop too. Please do optimise the code with functions for your part...

Using loop inside loop curve fit and extract x intercept_Data Attached

I have done it using a for loop. You can also try without for loop too. Please do optimise the code with functions for your part...

5년 초과 전 | 1

| 수락됨

답변 있음

Help combine the two scripts

% clear all; x=[2 2 2 2 2 2 2 2 2 2] autocorr(x); N=length(x); y=x; z=x; for i=1:N-1 for i=N-1:-1:1 x...

Help combine the two scripts

% clear all; x=[2 2 2 2 2 2 2 2 2 2] autocorr(x); N=length(x); y=x; z=x; for i=1:N-1 for i=N-1:-1:1 x...

거의 6년 전 | 0

답변 있음

How to write a function or loop if inputs of subsystem block is full then connect to other subsyem block in script?

please take a look at this site <https://in.mathworks.com/help/simulink/slref/add_line.html>

How to write a function or loop if inputs of subsystem block is full then connect to other subsyem block in script?

please take a look at this site <https://in.mathworks.com/help/simulink/slref/add_line.html>

거의 6년 전 | 0

| 수락됨

답변 있음

Cell array of coordinates from two vectors

you should you at least one nested loop for k=1:length(X) z=[X(k) Y']; perms(Z); end

Cell array of coordinates from two vectors

you should you at least one nested loop for k=1:length(X) z=[X(k) Y']; perms(Z); end

거의 6년 전 | 0

답변 있음

calculate input of a system having output and transfer function

https://dsp.stackexchange.com/questions/16671/output-of-a-system-given-its-transfer-function-and-input-beginner Does this sol...

calculate input of a system having output and transfer function

https://dsp.stackexchange.com/questions/16671/output-of-a-system-given-its-transfer-function-and-input-beginner Does this sol...

거의 6년 전 | 0

답변 있음

Matching port number in two simulink model

%find all inports from both system Allinports1=find_system('PortSync/Subsystem1','BlockType','Inport'); Allinports2=find...

Matching port number in two simulink model

%find all inports from both system Allinports1=find_system('PortSync/Subsystem1','BlockType','Inport'); Allinports2=find...

거의 6년 전 | 0

| 수락됨

답변 있음

How to use a string as name for variable/array?

I think the answer for this question is already provided here https://in.mathworks.com/matlabcentral/answers/35295-how-to-con...

How to use a string as name for variable/array?

I think the answer for this question is already provided here https://in.mathworks.com/matlabcentral/answers/35295-how-to-con...

거의 6년 전 | 0

답변 있음

Simulink 2017a model window resuse preference?

Yes. This has been removed in the present versions of Matlab and you get the complete path of the model on the left top side of ...

Simulink 2017a model window resuse preference?

Yes. This has been removed in the present versions of Matlab and you get the complete path of the model on the left top side of ...

거의 6년 전 | 0

답변 있음

Is Varying Transfer Function description wrong?

You can take a0 common and make the first coefficient 1. from this you can set all the coefficient and then multiply the whole b...

Is Varying Transfer Function description wrong?

You can take a0 common and make the first coefficient 1. from this you can set all the coefficient and then multiply the whole b...

거의 6년 전 | 0

| 수락됨

답변 있음

how to combine text files using load function?

Since you are trying to do in arrays you are not able to concancate You should try it using cell arrays. something like this ...

how to combine text files using load function?

Since you are trying to do in arrays you are not able to concancate You should try it using cell arrays. something like this ...

거의 6년 전 | 0