MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 22 of 208 Ask a Question
How can I add all subfolders to my MATLAB path?
dragoon · Dec 23, 2023 · MATLAB , Programming , Files and Folders , Search Path

For example, my matlab folder 'current_use' is under the directory user/example/matlab/current_use and under 'current_use' folder there are 6 subfolders and each contains data file…

Why can't MATLAB access a file that is in its current directory?
Fahad · Dec 15, 2023 · file access , current directory , add to path , matlab r2008b

I am trying to execute a .m script that manipulates data in an Excel file. The MATLAB code and the Excel spreadsheet are in the same directory, which is also the current directory.…

DNN classify function uses GPU, or just CPU ?
Alessandro · Dec 7, 2023 · dnn , classify , gpu , cpu

I have been using Deep Learning for a short time; I learned to use the GPU for network training.   When I trained the neural network, I use the classify function to make it "work"…

How to train a sequence to classification network on GPU
Tony Marino · Dec 7, 2023 · gpu , deep learning , AI, Data Science, and Statistics , Deep Learning Toolbox

I have a sequence to classification network that I can successfully train on a CPU using the trainNetwork function. However, when I set the ExecutionEnvironment to GPU it takes the…

How to select a specific cell in UITable?
yasin gedik · Dec 5, 2023 · appdesigner , app designer , MATLAB , App Building

There is an input and I want to get the other values in the row where this input is equal to one of the values in the first column of the UITable.   I think l need something like:…

How to include complex numbers in fprintf function?
McCormack · Dec 5, 2023 · fprint , fcomplex numbers , MATLAB , Language Fundamentals

lambda = [1.064e-6]; R = [30]; w=[0.001]; q = (1./R- i* lambda./pi./w.^2).^(-1); a=1; p=1; m=1; probe_r=linspace(0,0.003,100); probe_theta=linspace(0,0.003,100); rseed=[0*max(w):ma…

How to add variable to Table in MatLab App Designer ?
ryem berrada · Dec 5, 2023 · matlab gui , app designer , MATLAB , App Building, Develop Apps Using App Designer

Hello,   I have a few variables that I would like to add into columns of a Table in MatLab App designer.   Ma variables are: app.A, app.B, app.C   I set the Table (called app.Ta…

Finding the first instance of a value in an array
Pelajar UM · Nov 28, 2023 · array , search , MATLAB , Language Fundamentals , Matrices and Arrays

I have an array with many rows and many columns. I want to search the array row by row, find the first instance of a value that is above 170 (yellow cells below) and then store the…

Get a Free Consultation or a Sample Assignment Review!