Community Profile

Rohit Kudva

MathWorks

Last seen: 2 years ago Active since 2015

All

Content Feed

View by

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

3 years ago

Solved

Given a and b, return the sum a+b in c.

5 years ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

5 years ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

5 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

5 years ago

How can I open a GUI inside a GUI?
Hi Christian I do not think it is possible in MATLAB to embed a GUI within a GUI. The best workflow for your use-case would b...

6 years ago | 0

MATLAB code integration in LabView
Hi Abhijit I doubt MATLAB code can be directly used in LabView. You may get a better suggestion on this workflow on NI forum....

6 years ago | 0

Running GUI calling Simulink on a computer without Matlab installed on it
Hi Filippo MATLAB Compiler allows one to compile their MATLAB code to create a standalone executable that can be distributed ...

6 years ago | 0

matlab change my environment variable \$PATH, Can I remove them from \$PATH?
Hi Hao, Removing those paths from the system's PATH environment variable should not ideally break anything in MATLAB. But wit...

6 years ago | 0

| accepted

Matrix is close to singular or badly scaled in SPS
Hi Tony, The reason could be that the model is a very stiff system. If it contains a Universal Bridge snubber, you may want t...

6 years ago | 0

| accepted

I get an error saying 'The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception.' when trying to use matlab dll in visual studio
Hi Nug, Ensure that you have the MCR version corresponding to MATLAB 2012b installed. You can check that from the following l...

6 years ago | 0

| accepted

How to perform several acquisition with different sample rate ?
Hi Vincent, I understand that you are currently using NI cDAQ 9174 chassis with NI 9234 module for accelerometer and a NI 921...

7 years ago | 0

Legend position change after printing
Hi Junyi, I work for MathWorks and I have forwarded this feedback to the appropriate product team. Regards, Rohit

7 years ago | 0

Generate stl file for random spheres
Hi SS The equations for a sphere centered at (m,n,p) with radius 'r' in spherical coordinate system will be x = m + r*co...

7 years ago | 1

| accepted

How to determine output dimension of refproparray
Hi Fotis, 'refproparray' doesn't seem to be a MATLAB function but to answer your question in general, you can use the 'size' ...

7 years ago | 0

Can't apply Copy options to multiple figures
Hi Laura, Which version of MATLAB are you using? This is a known bug with MATLAB R2014b and unfortunately there is no possibl...

7 years ago | 0

Axes component name as an argument to a function
Hi Jason, You can pass the 'axes' object to a function and plot on that specific axes function [high,low]=Autoscaleimage...

7 years ago | 0

| accepted

Can't resolve dependencies for Java library.
Hi Claas, I understand that you have compiled your MATLAB function to a JAR file which you using in a Java driver application...

7 years ago | 0

MWArray and C#: Returned Handle to Matlab figure is null in C#-Code
Hi Christian, I understand that you have compiled a MATLAB function (that opens a plot/figure and returns the handle to this ...

7 years ago | 0

engOpenSingleUse() crash on second call
Hi Jon, I understand that when you used 'engOpenSingleUse' function the second time after closing the previous instance of MA...

7 years ago | 0

Video feed will not start() in my axes object, but works with preview().
Hi Lisa, I understand that you are unable to view any image on your GUI. I looked into your code and one of the possible reas...

7 years ago | 0

Compiling mex/cpp on linux cluster with g++ 4.7
Hi Phil, I understand that you are unable to compile your CPP file using GCC compiler version 4.7 which is supported by MATLA...

7 years ago | 2

Does Matlab Release 2014b include ghostscript? If so, can a deployed executable use ghostcript?
Hi Tommie, MATLAB ships with its own version of ghostscript. The ghostscript files are located at [matlabroot\sys\extern\{arc...

7 years ago | 1

Why Matlab executable cannot load .NET library? The DLL path is correct.
Hi Jingliang, One possible reason can be that while compiling the code to create a standalone executable, you may have not ad...

7 years ago | 1

MEX will not find Visual Basic
Hi Susan, As Geoff mentioned, if will be really helpful if you could post the output of >> mex -setup -v One possi...

7 years ago | 0

problem to stop a video capture
Hi Benigno, One possible issue may be memory limitations as you are trying to grab frames from multiple camera's at the same ...

7 years ago | 0

How to generate a square lattice structure.
Hi Subhashish, I am not sure about your use case for developing this square lattice structure. Do you want it for some kind o...

7 years ago | 0

MATLAB Installer Crashes R2014b and R2015a on Mac Pro (late 2013)
Hi Nicholas, This crash can occur due to several reasons. In order to troubleshoot this issue, you can try to do the follow...

7 years ago | 1

Saving plot as pdf in loop
Hi Elise, The ' <http://www.mathworks.com/help/matlab/ref/sprintf.html sprintf> ' function is used for formatting certain inp...

7 years ago | 0

| accepted

Why is ncread reading in times which are wrong by a year?
Hi, I executed the code you provided and I was able to reproduce this issue. This seems to be a bug in MATLAB. I work for Mat...

7 years ago | 0