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 31 of 208 Ask a Question
How do you access table data to be used with basic operators?
Jesse Finnell · Jul 11, 2023 · indexing , loops , Data Types , Tables

%% Test Sheet %% Open data location % find open Excel File (if multiple, chooses 'current')DB = actxGetRunningServer('Excel.Application'); % choose correct tabDBsheet = DB.ActiveWo…

How to separate all negative and all positive values of a vector?
Sergey Dukman · Jul 8, 2023 · vectors in matlab , MATLAB , Resizing and Reshaping Matrices

Hello, I baffled by one task in Matlab, namely I need to create two vectors that contains all positive and all negative values of an initial vector. I would like to get a general a…

Why does polyfit gives two outputs?
Rahul · Jul 1, 2023 · slope , Creating and Concatenating Matrices , MATLAB , Language Fundamentals

Hi, I want to plot a line passing through a set of points, which is as in the code below.   To determine the slope I used polyfit.   But it gives two outputs.   I wonder which o…

How to determine coastal erosion in matlab?
Cícero Vicente · Jul 1, 2023 · coastal erosion , code for erosion , beaches , Oceanography and Hydrology

    I have a question that I don't know how to solve or what direction I should take. I have a chronological analysis of 73 coastlines (.shp) at Itapoá beach (Santa Catarina, Br…

How do I plot lines with different line widths in matlab
treffic · Jun 27, 2023 · matlab, ploting, plots

Hi, I want to do: plot(x1,y1,x2,y2,'LineWidth',8) but the linewidth propery ends up applying to both lines. Do I have to use two plot functions with a hold on command to have line1…

Get a Free Consultation or a Sample Assignment Review!