Answered
How to import csv files in MATLAB?
Use readtable, readmatrix, or readcell. My preference is readtable.

4 years ago | 0

| accepted

Answered
Ask about certain example in MATLAB documentation.
That example was designed for MATLAB R2021b. Some of the options used do not exist in previous versions of MATLAB. This exampl...

4 years ago | 0

| accepted

Answered
Line prob at o2
It is using linear indexing to extract the 136th cell from o2. Linear indexing counts down the rows, column by column. Item 136 ...

4 years ago | 0

| accepted

Answered
Trying to solve for roots
MATLAB does not do implied multiplicaton. You are getting the error in your first image because you have f = @(x) .625-(x^2/(2*...

4 years ago | 0

Answered
How to plot variable against time
I recommend the following chapters of MATLAB Onramp. 4: vectors & matrices 6: array calculations 9: plotting and 12: progra...

4 years ago | 0

| accepted

Answered
Uigetfile multiple selection in MATLAB app designer
"Could it have something to do with the fact that I'm using MATLAB online?" Yes. Multiselect with uigetfile is not currently po...

4 years ago | 1

| accepted

Answered
how do i draw the function of 3t^2+2t-0.5
MATLAB Onramp. Ch 9 covers plotting, but you may need some of the earlier chapters to know how to set it all up.

4 years ago | 0

Answered
How can I save a table to excel file so that all excel cells have not specific format?
Use writetable. A quick test showed a table containing text and numbers that I saved using writetable was using the general form...

4 years ago | 0

Answered
how to find value in the matrix using index?
See Ch 5 of MATLAB Onramp.

4 years ago | 0

Answered
Matrix of buttons in AppDesigner
First, see this answer. The summary is it is often better to arrange everything on the canvas ahead of time, and then change the...

4 years ago | 0

| accepted

Answered
Trying to create a table with a char array as variable names
Your letters need to be separated. One way to do this is put them in a colum vector, and turn that into a string. Note the other...

4 years ago | 0

| accepted

Answered
Trial Not Available for fresh student account
Please contact support.

4 years ago | 0

Answered
Using for loop to build and plot data from a matrix
The calculation in your for loop returns more than 1 value, so your assignment must be to a number of rows and/or columns of the...

4 years ago | 0

| accepted

Answered
Problem in sorting the elements of a complex column vetor in descending order.
Just specify 'descend' for your sort order. B = sort(___,direction) format longE V=[0.00192283028876372 + 2.81043109217511e-...

4 years ago | 0

| accepted

Answered
Can't open a range of a .csv excel file in Matlab online version
Basic mode means you are using xlsread without having access to Excel. That is the case with MATLAB Online, and is mentioned in ...

4 years ago | 1

| accepted

Answered
Why is the string below the first conditional not printed?
Because the result of the dot products is not exactly 1. A = [2 2 -1+4i]/5; B = circshift(A,-1); C = circshift(B,-1); AA =...

4 years ago | 1

Answered
why in this function they use empty square brackets?
In this context, it appears to be deleting elements from A. Try it out in MATLAB to see what it is doing. A = rand(3) A(1,:)=...

4 years ago | 2

Answered
How to plot 3 y axis?
I would probably plot this way. x = [1 6 10 15 22]; y1 = [2 6 8 10 15]; y2 = [99 97 94 92 89]; y3= [1 3 6 8 11]; plot(x,...

4 years ago | 0

Answered
Help with knowing what kind of vector im using
It is appending y(2) to the end of the vector th2s at the end of each h loop. th2s=[]; for a=1:3 a th2s = [th2s,a]...

4 years ago | 0

| accepted

Answered
Function doesn't work in another file
When I run your code, I get the following error: Unrecognized function or variable 'Ph1'. Error in untitled6>a...

4 years ago | 0

| accepted

Answered
Custom Fit Sometimes Work Sometimes Doesn't
The initial guess or starting oint for the coefficients often is a random guess by default. I would suggest trying to specify a ...

4 years ago | 0

| accepted

Answered
How do I return to the 2nd For loop until the if statement is met before starting the 2nd iteration of the first For loop?
It looks to me like you may want to use a while loop for your second loop instead of a for loop. Right now, it is only running o...

4 years ago | 0

| accepted

Answered
I want to use the same function over and over again and store its outputs into an array or a matrix.
See Ch 12 of MATLAB Onramp. It covers for loops, which are used to run the same code over and over. As part of that, it will tea...

4 years ago | 1

| accepted

Answered
Importing data into MATLAB with .mtx format
I am not sure I know what a .mtx file is, but if you can copy/paste the data into excel, it must just be a text file with a uniq...

4 years ago | 1

| accepted

Answered
Slider selection for a duration type data
The only way I could find to do this is to put the slider inside my duration function. For example, this screen shot shows how I...

4 years ago | 0

Answered
readtable from excel import mixed column (double,string) as double and replace string by NaN, how to import those columns only as string ?
When datatypes are not specified, MATLAB tries to autodetect the column datatype. Use the options input to set a specific data t...

4 years ago | 1

| accepted

Answered
problem in plotting data
I changed your post to executable code and ran in here. Two plots were created. Are those the figures you are trying to create? ...

4 years ago | 0

| accepted

Answered
Invoke 'SaveAs' in excel to save sheet as '.htm' format.
I found this answer from 2009 that gives insight into how to do this. The optional variant argument "43" is used to specify an o...

4 years ago | 0

Answered
migrate from AppDesigner back to GUIDE
There is not a tool for migrating that direction. What versions of MATLAB are you trying to go between? You can turn an app int...

4 years ago | 0

Answered
Reconstruct CT Scans for Human Lumbar Spine
The simplest way is to use the dicom browser app and export the result to the volume viewer app.

4 years ago | 0

Load more