Community Profile

photo

Kunal Kandhari


Last seen: 5 months ago Active since 2021

Statistics

  • Revival Level 2
  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Answered
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...

6 months ago | 0

Answered
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 ...

6 months ago | 0

Answered
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...

6 months ago | 0

Answered
Interface between Python and Matlab using tcpserver
Changing matlab code to following will work: server = tcpserver('127.0.0.1', 1234,"ConnectionChangedFcn",@connectionFcn) fun...

6 months ago | 0

Answered
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: ...

6 months ago | 0

Answered
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...

6 months ago | 0

Answered
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...

6 months ago | 0

Answered
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 ...

6 months ago | 0

Answered
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 ...

6 months ago | 1

| accepted

Answered
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...

6 months ago | 0

Answered
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...

6 months ago | 0

Answered
Preprocessing Data from Excel
Hello You can easily do that by reading the file and calling internal Matlab functions _______________________________________...

6 months ago | 0

| accepted