Kunal Kandhari
Content Feed
已回答
What is the fastest/best way to create several thousand (text) files?
Using "fopen" & "fprintf" is one of the fastest way of creating several thousand text files below is the sample code for it: b...
What is the fastest/best way to create several thousand (text) files?
Using "fopen" & "fprintf" is one of the fastest way of creating several thousand text files below is the sample code for it: b...
7 months 前 | 1
| 已接受
已回答
Why do I get the error "Expected index to be positive" on line 3?
It is because indexing in matlab starts from 1 and not from 0 Changing line 3 to this: section1 = read(vfull,[1 5]); will s...
Why do I get the error "Expected index to be positive" on line 3?
It is because indexing in matlab starts from 1 and not from 0 Changing line 3 to this: section1 = read(vfull,[1 5]); will s...
3 years 前 | 0
已回答
call matlab function from php passing JSON object and return some values
This can be done by establishing the Socket communication between PHP and Matlab Example code for it: Code for PHP: <?php ...
call matlab function from php passing JSON object and return some values
This can be done by establishing the Socket communication between PHP and Matlab Example code for it: Code for PHP: <?php ...
3 years 前 | 0
已回答
Parse JSON String to Structure
This can be done using : jsondecode('string text'); For more reference: https://in.mathworks.com/help/matlab/ref/jsondecode.h...
Parse JSON String to Structure
This can be done using : jsondecode('string text'); For more reference: https://in.mathworks.com/help/matlab/ref/jsondecode.h...
3 years 前 | 0
已回答
Interface between Python and Matlab using tcpserver
Changing matlab code to following will work: server = tcpserver('127.0.0.1', 1234,"ConnectionChangedFcn",@connectionFcn) fun...
Interface between Python and Matlab using tcpserver
Changing matlab code to following will work: server = tcpserver('127.0.0.1', 1234,"ConnectionChangedFcn",@connectionFcn) fun...
3 years 前 | 1
已回答
Matlab2020 tcp socket open
The following code will create Server socket at port 5001 and infinitely allows clients to connect and receive data from them: ...
Matlab2020 tcp socket open
The following code will create Server socket at port 5001 and infinitely allows clients to connect and receive data from them: ...
3 years 前 | 0
已回答
Loading excel data using a professional code
To import data in matlab you can use load function Note: The only kind of "excel file" that you can use with load() is a .csv f...
Loading excel data using a professional code
To import data in matlab you can use load function Note: The only kind of "excel file" that you can use with load() is a .csv f...
3 years 前 | 0
已回答
Why is logical array fasle?
It is because most decimal fractions are not exactly representable in binary form, just like 1/3 is not representable exactly in...
Why is logical array fasle?
It is because most decimal fractions are not exactly representable in binary form, just like 1/3 is not representable exactly in...
3 years 前 | 0
已回答
i am confused with commands for loop
To create an array of random numbers between range 0 to 10 with size (10,1): arr=randi(11,1,10)-1; % first parameter is range ...
i am confused with commands for loop
To create an array of random numbers between range 0 to 10 with size (10,1): arr=randi(11,1,10)-1; % first parameter is range ...
3 years 前 | 0
已回答
i got this matrix question on my exam and i really had hard time with it
This can be done using following line of code: A = [zeros(2,3) ones(2,2); eye(5)] Explaination: zeros(2,3) will create array ...
i got this matrix question on my exam and i really had hard time with it
This can be done using following line of code: A = [zeros(2,3) ones(2,2); eye(5)] Explaination: zeros(2,3) will create array ...
3 years 前 | 1
| 已接受
已回答
Check for incorrect argument data type or missing argument in call to function 'diff'.
The correct piece of code will be: f = inline('((x+2)^(2/3)*((3*x^2)-2)^3)','x') ans = f(1) matlab will internally convert it...
Check for incorrect argument data type or missing argument in call to function 'diff'.
The correct piece of code will be: f = inline('((x+2)^(2/3)*((3*x^2)-2)^3)','x') ans = f(1) matlab will internally convert it...
3 years 前 | 0
已回答
How do I make a 10x10 showing all numbers 1 to 100?
Following code will create a matrix as stated above: x=reshape( 1:100, 10, 10).'; %1:100 will create a linear matrix with 1 to...
How do I make a 10x10 showing all numbers 1 to 100?
Following code will create a matrix as stated above: x=reshape( 1:100, 10, 10).'; %1:100 will create a linear matrix with 1 to...
3 years 前 | 0
已回答
Preprocessing Data from Excel
Hello You can easily do that by reading the file and calling internal Matlab functions _______________________________________...
Preprocessing Data from Excel
Hello You can easily do that by reading the file and calling internal Matlab functions _______________________________________...
3 years 前 | 0
| 已接受