MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
How to rotate legend in matlab 2019
CHEN Jianghua - 2023-12-28

Hi, I would like to rotate the legend from horizontal layout to vertical layout, just as shown in the picture below. Could anyone share some experienc...

How can I determine whether a string contains a substring?
Alan Garger - 2023-12-27

I have directory names that end in '0.0100'. I want to be able to skip certain directories by comparing the substring '0.0100' to the directory name. ...

How can i find the path of a file?
Arnaud Dupont - 2023-12-27

First i will explain my situation. I have a folder that has a lot of sublevels and one of those subfolders contains the file i need.     main folder...

How to use relative path to use matlab file in another computer
Harsha - 2023-12-27

I have a folder in P:\study\Main. Inside the "Main" folder there is another sub folder called "Sub". There is a m file in main called "main_s.m". This...

Why do I receive warning messages about the Toolbox Path Cache when starting MATLAB?
shalni - 2023-12-25

I receive some or all of the following warning messages when starting MATLAB:   \\System\MATLAB\toolbox\toolboxname not found in Toolbox Path Cache W...

How to crop the area outside the shaperfile on a map
Robson Passos - 2023-12-25

Dear,   I have a .txt file with three columns: longitude, latitude and another variable (i.e. altitude, temperature, precipitation), the data are fro...

How can I access the saved command history in MATLAB?
dpb - 2023-12-23

I have a number of commands appearing in my Command History window, which I would like to extract for other uses.  ...

How can I add all subfolders to my MATLAB path?
dragoon - 2023-12-23

For example, my matlab folder 'current_use' is under the directory user/example/matlab/current_use and under 'current_use' folder there are 6 subfolde...

Why can't MATLAB access a file that is in its current directory?
Fahad - 2023-12-15

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

How can I cut four numbers after the decimal number without rounding using MATLAB ?
Salem - 2023-12-07

I have a number like this:   2.32166873546944   I want to take only four numbers after the decimal point and without rounding, that is, I only want:...

Get a Free Consultation or a Sample Assignment Review!