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 38 of 208 Ask a Question
Print a statement to the Command Window
NAVNEET NAYAN · Apr 3, 2023 · print , output , command window , Language Fundamentals

I am writing a program. I want to display the statement 'job done' as the output in the Command Window. How can I do it?  …

How to use Webwrite to call REST APIs successfully, eg OpenAI API
CdC · Apr 3, 2023 · MATLAB , Data Import and Analysis , Data Import and Export , webwrite , api

Webwrite Produces Error Though Seemingly Identical CURL Request Is Successful at Calling OpenAI API   This matlab code doesn't work. Can anyone figure out why?   prompt = 'Hello,…

How to Connecting to ChatGPT using API
John Adams · Apr 1, 2023 · fine tune , chatgpt , Matrix Indexing , MATLAB , Language Fundamentals

I tried connecting to Chat GPT with the following web instructions and get the error as reflected ...   prompt = 'What is the capital of France?'; api_key = 'sk-4Y8Tmelxvsdfghfghh…

cla reset stops UIAxesButtonDown from working
Jason · Apr 1, 2023 · MATLAB , uiaxes , Graphics Objects , Specifying Target for Graphics Output , uiaxesbuttondown

Hello. I have a UIAxes that I plot on and I want to manually be able to add text where ever I click on the graph. I am using the following to do this UIAxesButtonDown(app, event) d…

How to find the angle of a line with respect to plot window
himura · Mar 30, 2023 · plot , line , text , MATLAB , Labels and Annotations

  This is a little hard to explain. I am not looking for the angle of the line with respect to the cartesian coordinates, I am looking for the angle with respect to the plot windo…

Change the period/frequency of a Van der Pol Oscillator
Alexis Contrears R · Mar 30, 2023 · van der pol , plot , frequency , Signal Processing , DSP System Toolbox

  Hello everyone,   I'm having a trouble/issue changing the frequency of a van der Pol oscillator and getting an specific shape of the plot.   I'm using a pedestrian lateral for…

Plotting 3D by rotate 2D plot around y-axis
Tuan · Mar 30, 2023 · matlab , plotting , 3d plots , Lighting, Transparency, and Shading , MATLAB , Graphics

I have a question to draw a 3D cup of coffe (no need to draw a handle). I think to be easy we need to draw 2 parabol ( inner and outter ) , the upper bound and bottom bound, then r…

Get a Free Consultation or a Sample Assignment Review!